Twitter Updates

Tuesday, 23 February 2010

.vimrc tweaks

Improving the Status line in Vim, get current file, directory, position etc.

~/.vimrc

"Setup the Status line
set showcmd " shows the command in the status line
set ch=2 " make command line 2 lines high
set ls=2 " status line always on

set statusline %<%f\ %h%m%r%=%{getcwd()}\ \ \ %-14.(%l,%c%V%)\ %P

No comments: