Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Created May 19, 2011 06:20
Show Gist options
  • Save trapd00r/980286 to your computer and use it in GitHub Desktop.
Save trapd00r/980286 to your computer and use it in GitHub Desktop.
if exists('g:loaded_fugitive')
let &statusline="this one is active."
endif
let g:Active_statusline=&g:statusline
let g:NCstatusline="this one is not active."
au WinEnter * let &l:statusline = g:Active_statusline
au WinLeave * let &l:statusline = g:NCstatusline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment