h/j/k/l |
Move cursor left/down/up/right |
H |
Move cursor to top of page |
L |
Move cursor to bottom of page |
0 (zero) |
Move cursor to beginning of line |
$ |
Move cursor to end of line |
i |
Insert at cursor |
ESC |
Terminate insert mode |
u |
Undo last change |
U |
Undo all change to entire line |
dd |
Delete line |
3dd |
Delete 3 lines |
ZZ |
Save changes and quit |
:wq |
Save changes and quit |
:w |
Save changes without quit |
:q! |
Ignore changes and quit |
:qa |
Quit all files opened |