浏览代码

colors in vimrc statusline systemindependent

master
Dirk Alders 1年前
父节点
当前提交
11d77c979d
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      .vimrc

+ 5
- 2
.vimrc 查看文件

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

正在加载...
取消
保存