matagus

Jul 15

customizing vim status bar

A simple way to show some usefull information about the file you're editing.

I've been playing around with vim configuration. And one thing that I really like is to have an always visible status bar with some usefull info:

Just add the following two lines to your .vimrc file:

  set laststatus=2
  set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff;}]%=[%p%%\ line:\ %l\ of\ %L\ col:\ %v]

References:

Related tags: vim