Friday, July 25, 2008

Moving to VIM


I decided to make vim my default text editor. Here are a couple of tips:

To get syntax highlighting in vim, add the following to your ~/.vimrc file or enter while editing (command mode, remember to press ':' before entering):
set background=dark # if your console background is dark..
syntax on

To get line numbers:
set nu
To split the screen in 2
split
vsplit # Vertical Split

To Move from split windows
Ctrl+W+(direction)
Open a file
open file
Close a file
close
Search Reg Ex
/regex
Goto Line Number
:number
Search word under cursor
*

I will post more eventually... vim kicks emacs butt by the way.

No comments: