From c854dd8c4ede4f9d1c6007baca045b436c582e5b Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 9 May 2012 18:35:41 +0200 Subject: [PATCH] add current git branch to status, thanks to the fugitive plugin --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 2ec5acf..985438f 100644 --- a/.vimrc +++ b/.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