refactor(vim): make the the status even more basic

This commit is contained in:
Ade Attwood 2025-07-25 11:22:21 +01:00
parent adf01758f0
commit 2b73b75ad3

View file

@ -1,10 +1,2 @@
" The most basic status line ever " The most basic status line ever
function GitStatus() set statusline=\ %y%r\ %m%f:%l:%c%=
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()}\