Vi Cheatsheet
Command | Meaning |
---|---|
h | move cursor left |
j | move cursor down |
k | move cursor up |
l | move cursor right |
a | add after char |
i | add before char |
A | add end of line |
I | add start of line |
o | add below line |
O | add above line |
dd | delete one line |
x | delete one char |
:w | save |
:q | quit |
:wq | save and quit |
:w! | force save |
:q! | force quit |