浏览代码

removed git status - strange behaviour on raspi

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

+ 0
- 11
.vimrc 查看文件

@@ -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

正在加载...
取消
保存