Skip to content

Commit

Permalink
added git (fugitive) status to statusbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jedp committed Apr 16, 2011
1 parent e9d2a9a commit 6245651
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion etc/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,21 @@ set listchars=tab:▸\ ,extends:>,precedes:<

" Always show the customized statusline
set laststatus=2
set statusline=%<%f\ [%M%n%R%H]%=%l/%L,%v\ %p%%
set statusline= " clear for when vimrc is reloaded
set statusline+=%< " filename
set statusline+=%f\
set statusline+=[%M%n%R%H]\
set statusline+=%{fugitive#statusline()}\ " git status
set statusline+=%= " right align
set statusline+=%b,0x%-8B\ " current char
set statusline+=%l/%L,%v\ " line
set statusline+=%p%% " pct through



set fo=cq " auto-wrap comments, format comments
"set number " line numbering

" auto reload vimrc after edit
autocmd! bufwritepost .vimrc source %

0 comments on commit 6245651

Please sign in to comment.