From 25493ab8d19fd914b197d45eda6488338ef1a065 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Thu, 18 Feb 2021 17:54:08 -0700 Subject: [style] Move git branch to other side of vim status --- base/vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base') diff --git a/base/vimrc b/base/vimrc index fc327fb..db762ef 100644 --- a/base/vimrc +++ b/base/vimrc @@ -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 -- cgit v1.2.3-70-g09d2