Skip to content

Instantly share code, notes, and snippets.

@TaurusOlson
Created February 19, 2014 12:22
Show Gist options
  • Save TaurusOlson/9090870 to your computer and use it in GitHub Desktop.
Save TaurusOlson/9090870 to your computer and use it in GitHub Desktop.
A minimal statusline for Vim
hi default link User1 Error
set statusline =
set statusline +=[%n] " buffer number
set statusline +=\ %F " Full path to file
set statusline +=\ %1*%m%0* " modified flag
set statusline +=\ %=%-20.30{tagbar#currenttag('%s','')} " Current function
set statusline +=\ %h " [help]
set statusline +=%r " read only flag
set statusline +=%w " preview window flag
set statusline +=%=%-14.(%l,%c%V%) " Line, column-virtual column"
set statusline +=%=lines:\ %-5L " Lines in the buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment