Tuesday, July 21, 2009

VIM TUTORIAL

$ - end of the file/line
1 - beginning of the file
yy - (yank) copy current line (3yy - copy 3 lines)
dd - (delete) cut current line
p - paste (3p paste 3 times)
/ search
? - reverse order search
n - next occurrences in search
:1,$s/test/test (search and replace in the file from beginning)
u - undo
. - repeat last modification
x - delete backwards
A - insert end the of the line
cw - change word

No comments:

Post a Comment