Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created January 8, 2018 04:13
Show Gist options
  • Save kxzk/0c0cffb5d219de449973bb98ef716a88 to your computer and use it in GitHub Desktop.
Save kxzk/0c0cffb5d219de449973bb98ef716a88 to your computer and use it in GitHub Desktop.
" from scrooloose's blog post
" https://got-ravings.blogspot.com/2008/08/vim-pr0n-making-statuslines-that-own.html
set statusline=
set statusline+=%<\ " cut at start
set statusline+=%2*[%n%H%M%R%W]%*\ " flags and buf no
set statusline+=%-40f\ " path
set statusline+=%=%1*%y%*%*\ " file type
set statusline+=%10((%l,%c)%)\ " line and column
set statusline+=%P " percentage of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment