|
@@ -70,7 +70,6 @@ highlight NormalColor ctermbg=11 ctermfg=0
|
70
|
70
|
highlight InsertColor ctermbg=14 ctermfg=0
|
71
|
71
|
highlight VisualColor ctermbg=9 ctermfg=0
|
72
|
72
|
highlight CommandColor ctermbg=15 ctermfg=0
|
73
|
|
-highlight GitColor ctermbg=0 ctermfg=7
|
74
|
73
|
highlight FilenameColor ctermbg=10 ctermfg=0
|
75
|
74
|
highlight RightColor ctermbg=8 ctermfg=15
|
76
|
75
|
|
|
@@ -80,16 +79,6 @@ set statusline+=%#InsertColor#%{(mode()=='i')?'\ \ INSERT\ \ ':''}
|
80
|
79
|
set statusline+=%#VisualColor#%{(mode()=='v')?'\ \ VISUAL\ \ ':''}
|
81
|
80
|
set statusline+=%#CommandColor#%{(mode()=='c')?'\ \ COMMAND\ ':''}
|
82
|
81
|
|
83
|
|
-function! GitBranch()
|
84
|
|
- return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
85
|
|
-endfunction
|
86
|
|
-function! StatuslineGit()
|
87
|
|
- let l:branchname = GitBranch()
|
88
|
|
- return strlen(l:branchname) > 0?' '.l:branchname.' ':''
|
89
|
|
-endfunction
|
90
|
|
-
|
91
|
|
-set statusline+=%#GitColor# " Statusline format PmenuSel
|
92
|
|
-set statusline+=%{StatuslineGit()} " Git status
|
93
|
82
|
set statusline+=%#FilenameColor# " Statusline format NormalColor
|
94
|
83
|
set statusline+=\ %f " Filename
|
95
|
84
|
set statusline+=\ %m " Modified token
|