Add optional statusline indicator

This commit is contained in:
Tim Pope
2010-02-02 23:46:04 -05:00
parent 315eb92abd
commit a27c0fc633
2 changed files with 35 additions and 0 deletions

View File

@@ -195,6 +195,15 @@ HEAD^:Makefile The file named Makefile in the parent of HEAD
:3 The current file in the merged branch during a conflict
:/foo The most recent commit with "foo" in the message
STATUSLINE *fugitive-statusline*
*fugitive#statusline()*
Add %{fugitive#statusline()} to your statusline to get an indicator including
the current branch and the currently edited file's commit. If you don't have
a statusline, this one matches the default when 'ruler' is set:
>
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
<
ABOUT *fugitive-about*
Grab the latest version or report a bug on Github: