esc make sure you are in normal mode
:q! <enter> discards any changes you made
:wq save the changes
x delete the character
i insert before the cursor
a append after the line
dw delete a word until the start of the next word excluding its first character
de delete a word to the end of the current word including the last character
d$ delete to the end of the line
2w movethe cursor 2 words forward
3e move the cursor to the end of the third word forward
0(zero) move to the start of the line
d2w delete the two upper case words
dd delete a whole line
u undo the last commangds
capital U return the line to its original state
ctrl-r undo the undo's
p put previously deleted text after the curosr(剪切)
rx replace the character at the cursor with x(r后面是修改后的字母,此命令为用x代替原来的字母)
ce deletes the word and places you in insert mode
cc does the same for the whole line
c$ delete the rest of the line from the cursor