diff options
author | Alexis Hovorka <[email protected]> | 2021-02-18 17:54:08 -0700 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2021-02-18 17:54:08 -0700 |
commit | 25493ab8d19fd914b197d45eda6488338ef1a065 (patch) | |
tree | bf9f68095cd4b3ec78f9ead49d21f4edfd579915 /base | |
parent | 17596db223e18ee1575456ee0cba734654932c16 (diff) |
[style] Move git branch to other side of vim status
Diffstat (limited to 'base')
-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 |