In normal mode:
H-move cursor left, J-move cursor down, K-move cursor up, L-move cursor right
U-Undo
X-delete characters under the current cursor
DD-delete the entire row under the current cursor
.-Repeat the previous operation
/Pattern-search for objects in the forward direction. N is the next one, and N is the previous one.
? Pattern-Backward Search in the file. N is the next one, and N is the previous one.
Text substitution:
: S/pattern/replacement (/g ). & Is next.
F {Char}-current row. Search for the char character after the cursor and move the cursor to the search result. For example, F +, the cursor moves to the current row, followed by the first + character. To continue to the next search result.
T {Char}-similar to f {Char}, but jump to the first character in the search.
A-move the cursor to the right and enter the editing mode.
A-move the cursor to the end of the row and enter the editing mode.
O-add blank lines under the cursor and enter the editing mode.
O-add blank lines above the cursor and enter the editing mode.
S-delete the character at the current position of the cursor and enter the editing mode.
Practical skills:
Add a semicolon at the end of each line: A->;-> ESC-> J->.
Vim usage tips [Continuous Addition of ing ...]