Home

Main

Friends

Links

Contact

Projects

Misc.

Vim Help


visually copy text
hit v and move the cursor to highlight text. After text selection, hit d to delete, y to yank or else...
mark a line
hit ma to set a mark and save it in buffer a. To get back at the mark in buffer a, hit 'a.
indent/outdent lines
To indent the entire file go to the begining of the file and type =G in command mode
:2,10> indents lines 2 through 10 towards right.
:2> indents line 2 towards right.
:%> indents all lines towards right.
In order to indent towards right use instead of >
case sensitive search
:set ignorecase or :set ic in order to ignore case. :set noic in order to make search case sensitive
searching whole word
surround the word by \< and \>
bash shell in vi mode
set -o vi
tcsh shell in vi mode
bindkey -v