Browse Source

colors in vimrc statusline systemindependent

master
Dirk Alders 1 year ago
parent
commit
11d77c979d
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      .vimrc

+ 5
- 2
.vimrc View File

71
 highlight InsertColor ctermbg=14 ctermfg=0
71
 highlight InsertColor ctermbg=14 ctermfg=0
72
 highlight VisualColor ctermbg=9 ctermfg=0
72
 highlight VisualColor ctermbg=9 ctermfg=0
73
 highlight CommandColor ctermbg=15 ctermfg=0
73
 highlight CommandColor ctermbg=15 ctermfg=0
74
+highlight GitColor ctermbg=0 ctermfg=7
75
+highlight RightColor ctermbg=8 ctermfg=15
76
+
74
 set statusline=
77
 set statusline=
75
 set statusline+=%#NormalColor#%{(mode()=='n')?'\ \ NORMAL\ \ ':''}
78
 set statusline+=%#NormalColor#%{(mode()=='n')?'\ \ NORMAL\ \ ':''}
76
 set statusline+=%#InsertColor#%{(mode()=='i')?'\ \ INSERT\ \ ':''}
79
 set statusline+=%#InsertColor#%{(mode()=='i')?'\ \ INSERT\ \ ':''}
85
   return strlen(l:branchname) > 0?'  '.l:branchname.' ':''
88
   return strlen(l:branchname) > 0?'  '.l:branchname.' ':''
86
 endfunction
89
 endfunction
87
 
90
 
88
-set statusline+=%#PmenuSel#                                   " Statusline format PmenuSel
91
+set statusline+=%#GitColor#                                   " Statusline format PmenuSel
89
 set statusline+=%{StatuslineGit()}                            " Git status
92
 set statusline+=%{StatuslineGit()}                            " Git status
90
 set statusline+=%#NormalColor#                                " Statusline format NormalColor
93
 set statusline+=%#NormalColor#                                " Statusline format NormalColor
91
 set statusline+=\ %f                                          " Filename
94
 set statusline+=\ %f                                          " Filename
92
 set statusline+=\ %m                                          " Modified token
95
 set statusline+=\ %m                                          " Modified token
93
 set statusline+=%=                                            " Allign right
96
 set statusline+=%=                                            " Allign right
94
-set statusline+=%#CursorColumn#                               " Statusline format CursorColumn
97
+set statusline+=%#RightColor#                                 " Statusline format CursorColumn
95
 set statusline+=\ %y                                          " file type
98
 set statusline+=\ %y                                          " file type
96
 set statusline+=\ %{&fileencoding?&fileencoding:&encoding}    " encoding
99
 set statusline+=\ %{&fileencoding?&fileencoding:&encoding}    " encoding
97
 set statusline+=\[%{&fileformat}\]                            " file format
100
 set statusline+=\[%{&fileformat}\]                            " file format

Loading…
Cancel
Save