refactor(vim): make the the status even more basic
This commit is contained in:
parent
adf01758f0
commit
2b73b75ad3
1 changed files with 1 additions and 9 deletions
|
|
@ -1,10 +1,2 @@
|
|||
" The most basic status line ever
|
||||
function GitStatus()
|
||||
return trim(system("git diff --shortstat 2> /dev/null | awk '{print \"+\"$4\" -\"$6}'"))
|
||||
endfunction
|
||||
|
||||
function GitBranch()
|
||||
return trim(system("git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'no-git'"))
|
||||
endfunction
|
||||
|
||||
set statusline=\ %y%r\ %m%f:%l:%c%=[%{GitBranch()}]\ %{GitStatus()}\
|
||||
set statusline=\ %y%r\ %m%f:%l:%c%=
|
||||
|
|
|
|||
Loading…
Reference in a new issue