Skip to content

Instantly share code, notes, and snippets.

@groenewege
Created April 14, 2011 22:03
Show Gist options
  • Save groenewege/920670 to your computer and use it in GitHub Desktop.
Save groenewege/920670 to your computer and use it in GitHub Desktop.
vim - status line
if has('statusline')
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=%{fugitive#statusline()} " Git Hotness
set statusline+=\ [%{&ff}/%Y] " filetype
set statusline+=\ [%{getcwd()}] " current dir
set statusline+=%=%-14.(Line:\ %l\ of\ %L\ [%p%%]\ -\ Col:\ %c%V%) " Right aligned file nav info
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment