To move a command:
H: Shift Left
L: Move Right
K: Move Up
J: Move Down
^: Move to the first non-whitespace character of the bank
0: Move to the first character of the bank
GG: Move to file header
g = Shift + G: Move to end of file
To switch to edit mode:
I insert at current position
I Insert at the beginning of the current
A is inserted after the current position
A inserts at the end of the current line
o Insert a row after the current line
O insert a row before the current line
Shear:
Press V (verbatim) or V (Progressive) into the visual mode in normal mode, then press the JKHL command to select certain lines or characters, and then press D to cut.
NDD cuts the n rows after the current row, using the P command to paste the clipped content.
Copy:
In normal mode, press V (verbatim) or V (Progressive) to enter the visual mode, then move with the JKLH command to select some rows or characters, then press Y to copy.
Use the P command to paste the copied content.
Exit command:
: Wq Save and exit
ZZ Save and exit
: q! Force exit and Ignore all changes
: e! Discard all changes and open the original file
Undo command:
U: Undo (undo)
U: Undo the operation of the entire row
Common VIM Command Collection