Skip to content

Instantly share code, notes, and snippets.

@eethann
Created December 15, 2011 17:14
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save eethann/1481911 to your computer and use it in GitHub Desktop.
Save eethann/1481911 to your computer and use it in GitHub Desktop.
vimrc segment for syntastic- and fugitive-enabled statusline.
" from https://github.com/spf13/spf13-vim/blob/master/.vimrc
if has('statusline')
set laststatus=2
" Broken down into easily includeable segments
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+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_enable_signs=1
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment