Saturday, October 27, 2007

vim

x - delete a character
dd - delete a line
i - insert mode
esc - escape from insert mode
yy - copy a line
sift p - paste
: - go to command line
w - save
sq -exit and save
q! - exit without saving
hjkl - move
^f - forward
^b - backward

:%s/,//g - change all ',' to ''
:%s/^M//g - ^M (control-v M)

:/X - search 'X'
n - next search
^g - where I am

No comments: