add current git branch to status, thanks to the fugitive plugin
This commit is contained in:
parent
67b6d64b8d
commit
c854dd8c4e
1 changed files with 1 additions and 1 deletions
2
.vimrc
2
.vimrc
|
|
@ -98,7 +98,7 @@ au VimEnter * echomsg system('/usr/games/fortune vimtweets')
|
|||
|
||||
set laststatus=2 " always show the statusline, even when there is only one file edited
|
||||
if has("statusline")
|
||||
set statusline=\ %f%m%r\ [%{strlen(&ft)?&ft:'aucun'},%{strlen(&fenc)?&fenc:&enc},%{&fileformat},ts:%{&tabstop}]%=%l,%c%V\ %P
|
||||
set statusline=\ %f%m%r\ [%{strlen(&ft)?&ft:'aucun'},%{strlen(&fenc)?&fenc:&enc},%{&fileformat},ts:%{&tabstop}]%{fugitive#statusline()}%=%l,%c%V\ %P
|
||||
elseif has("cmdline_info")
|
||||
set ruler " show current line and column number
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue