Saturday, March 21, 2009

VIM notes Chapters :4,5,6

Location

CTRL G - Cursor location

gg - Top

G - Bottom

Search (I didnt master search completely, but still)

/searchtermhere

n - for next occurrence of searchterm

% - matching paranthesis

chap 5 (didnt read other parts - using commands,etc)

v - visual selection

Chap 6

o - open a new line below the cursor

O - above the cursor.

a - append char

A - append char at the end of the line.

So A = $a ($ for to go to end of line,  a to append :) )

R - Replace mode (have to hit escape to exit out of this mode )

r - replace char only

Most useful part Copy

y for yank