Cursor movement
H or LEFT arrow: the cursor moves one character to the left, a combination of numbers and letters, 5h means 5 characters to the left, and the following three
J or RIGHT ARROW: Move the cursor down one character
K or UP ARROW: The cursor moves up one character
L or DOWN ARROW: the cursor moves one character to the right
CTRL+F: Move cursor down one page
CTRL+B: cursor moves up one page
Ctrl+d: Move the cursor down half a page
Ctrl+u: cursor moves up half page
+: Cursor moves to the next line that is not a space
-: The cursor moves to the previous line that is not a space
N<space>: N represents a number, for example: Press 10, then press SPACEBAR space, the cursor will move to the right of 10 characters of this line (Common)
0 or HOME key: The cursor moves to the front of this line (Common)
$ or END key: cursor moves to the last side of this line (common)
G: Move to the last line of the file ( common )
Ng:n represents a number, for example: 10G, the cursor moves to the 10th line of the file ( common )
GG: Cursor moves to first line of file ( common )
n+ ENTER: Move the cursor down n rows, example: Press 10 First, then press ENTER, the cursor will move down 10 lines (Common)
The cursor movement of Linux vim using shortcut keys