Skip to content

Instantly share code, notes, and snippets.

@saihoooooooo
Created April 17, 2012 05:27
Show Gist options
  • Select an option

  • Save saihoooooooo/2403700 to your computer and use it in GitHub Desktop.

Select an option

Save saihoooooooo/2403700 to your computer and use it in GitHub Desktop.
my vim statusline
let &statusline = ''
let &statusline .= '%{expand("%:t")}'
let &statusline .= '%h%w%m%r'
let &statusline .= ' (%<%{expand("%:p:~:h")}) '
let &statusline .= '%='
let &statusline .= '[HEX:%B][R:%l][C:%c]'
let &statusline .= '%y'
let &statusline .= '[%{&fileencoding != "" ? &fileencoding : &encoding}]'
let &statusline .= '%{&bomb ? "[BOM]" : ""}'
let &statusline .= '[%{&fileformat}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment