Browse Source

removed git status - strange behaviour on raspi

master
Dirk Alders 1 year ago
parent
commit
e86941c22f
1 changed files with 0 additions and 11 deletions
  1. 0
    11
      .vimrc

+ 0
- 11
.vimrc View File

70
 highlight InsertColor ctermbg=14 ctermfg=0
70
 highlight InsertColor ctermbg=14 ctermfg=0
71
 highlight VisualColor ctermbg=9 ctermfg=0
71
 highlight VisualColor ctermbg=9 ctermfg=0
72
 highlight CommandColor ctermbg=15 ctermfg=0
72
 highlight CommandColor ctermbg=15 ctermfg=0
73
-highlight GitColor ctermbg=0 ctermfg=7
74
 highlight FilenameColor ctermbg=10 ctermfg=0
73
 highlight FilenameColor ctermbg=10 ctermfg=0
75
 highlight RightColor ctermbg=8 ctermfg=15
74
 highlight RightColor ctermbg=8 ctermfg=15
76
 
75
 
80
 set statusline+=%#VisualColor#%{(mode()=='v')?'\ \ VISUAL\ \ ':''}
79
 set statusline+=%#VisualColor#%{(mode()=='v')?'\ \ VISUAL\ \ ':''}
81
 set statusline+=%#CommandColor#%{(mode()=='c')?'\ \ COMMAND\ ':''}
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
 set statusline+=%#FilenameColor#                              " Statusline format NormalColor
82
 set statusline+=%#FilenameColor#                              " Statusline format NormalColor
94
 set statusline+=\ %f                                          " Filename
83
 set statusline+=\ %f                                          " Filename
95
 set statusline+=\ %m                                          " Modified token
84
 set statusline+=\ %m                                          " Modified token

Loading…
Cancel
Save