aboutsummaryrefslogtreecommitdiff
path: root/base/vimrc
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2021-02-18 17:54:08 -0700
committerAlexis Hovorka <[email protected]>2021-02-18 17:54:08 -0700
commit25493ab8d19fd914b197d45eda6488338ef1a065 (patch)
treebf9f68095cd4b3ec78f9ead49d21f4edfd579915 /base/vimrc
parent17596db223e18ee1575456ee0cba734654932c16 (diff)
[style] Move git branch to other side of vim status
Diffstat (limited to 'base/vimrc')
-rw-r--r--base/vimrc10
1 files changed, 5 insertions, 5 deletions
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