Skip to content

Commit

Permalink
Mainline fugitive supports this now \o/
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Healey committed May 9, 2012
1 parent 62330e2 commit 513ef3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vimrc
Expand Up @@ -306,9 +306,9 @@ function! AFTERLOAD()
set statusline=%f\ %h%m%r
set laststatus=2
if exists('g:loaded_fugitive')
if exists('g:abbreviate_pattern') && exists('*fugitive#statusline')
if exists('g:abbreviate_pattern')
" let status = substitute(status, g:abbreviate_pattern, '\1/', 'g')
set statusline+=[%{substitute(fugitive#branchname(),g:abbreviate_pattern,'\\1\\2/','g')}]
set statusline+=[%{substitute(fugitive#head(7),g:abbreviate_pattern,'\\1\\2/','g')}]
else
set statusline+=%{fugitive#statusline()}
endif
Expand Down

0 comments on commit 513ef3f

Please sign in to comment.