diff options
-rw-r--r-- | base/vimrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -88,7 +88,7 @@ hi Folded ctermbg=0 ctermfg=12 function! StatusGitInfo() let git = gitbranch#name() if git != '' - return ' '.git + return ' '.git.' ' else return '' endfunction @@ -98,8 +98,7 @@ set showmode set showcmd set laststatus=2 set statusline= -"set statusline+=\ S%{strftime('%R',\ getftime(expand('%')))} " Time when last saved -set statusline+=%1*\ %2*%<\ " Cut at start +set statusline+=%1*\ %{StatusGitInfo()}%2*%<\ " Git branch set statusline+=%3*%f " Path set statusline+=%{&modified?'\ +':''} " Modified set statusline+=%{&ro?'\ ':''} " Read only @@ -108,11 +107,12 @@ set statusline+=%{&paste?'\ P':''} " Paste mode set statusline+=\ %4*%=%3*\ " Section break set statusline+=%{&ff=='unix'?'':toupper(&ff.'\ ')} " Line ending set statusline+=%l\ %c\ %P\ " Line column percent -set statusline+=%2*%1*%{StatusGitInfo()}\ " Git branch +set statusline+=%2*%1*\ " End cap +"set statusline+=%2*%1*\ S%{strftime('%R',\ getftime(expand('%')))}\ " Time when last saved "█ ^Vue0b0 hi StatusLineNC ctermfg=020 ctermbg=019 cterm=NONE -hi User1 ctermfg=020 ctermbg=019 +hi User1 ctermfg=015 ctermbg=019 hi User2 ctermfg=019 ctermbg=018 hi User3 ctermfg=020 ctermbg=018 hi User4 ctermfg=018 ctermbg=000 |