write and quit (save file and exit)
:wq
undo
u
jump forwards to the start of a word
w
jump forwards to the end of a word
e
delete (cut) a line
d
delete (cut) character
x
jump backwards to the start of a word
b
repeat last command
.
delete marked text
d
switch case
~
insert before the cursor
i
insert at the beginning of the line
I
insert (append) after the cursor
a
insert (append) at the end of the line
A
append (open) a new line below the current line
o
append (open) a new line above the current line
O
insert (append) at the end of the word
ea
exit insert mode
Esc or Ctrl + c
search for pattern
/pattern
write (save) and quit
:wq or :x or ZZ
quit and throw away unsaved changes
:q! or ZQ