First, the movement of the cursor
0: Move to the beginning of the line.
$: Moves to the end of the line.
W:walk move to the next word
B:back move to the previous word
H or BACKSPACE: Move left one character; back
L or Space: move right one character; forward
J: Move down one line;
K: Move up one line;
Second, turn the screen
Ctrl+f: Turn down one screen.
Ctrl+b: Turn up one screen.
Ctrl+d: Flip half screen.
Ctrl+u: Flip half screen.
Ctrl+e: Scrolls down one line.
Ctrl+y: Scrolls up one line.
Three, basic insertion
I: Insert in front of the cursor; a tip: Press 30i in ESC mode first;
Enter W again, then press ESC, and insert 30 watts.
I: The first non-empty word match either inserted in the current line;
GI: Inserted in the first column of the current row;
A: Insert after the cursor;
A: Insert at the end of the current line;
o: Insert a new line below;
O: Insert a new row above;
Iv. Copy, paste
Y: Copies the selected text in Visual mode.
yy or Y: Copies the entire line of text.
y$: Copies the cursor from its current position to the end of the line.
Y0: Copies the cursor from its current position to the beginning of the line.
P: Paste after the cursor.
D: Delete (cut) the selected text in Visual mode.
d$ or D: Deletes (cuts) the contents of the current position to the end of the line.
D0: Delete (cut) the contents of the current position to the beginning of the line
Five, find
/something: Find something in the text that follows.
Something: Look for something in the previous text.
Common command shortcuts for VIM tools