Vi & vim move cursor scroll screen Abstract: 1) move the cursor in the screen; 2) move the cursor in the row; 3) screen scroll; vi & vim has the compilation mode and command mode, the following cursor movement operations are performed in command mode. The ^ character below indicates that the Ctrl key is pressed. For example, ^ F indicates that the Ctrl and F keys are simultaneously pressed; in the following, press a key with the + sign and then press another key. For example, z + Enter indicates that the z key is pressed first, and then the Enter key is pressed. 1, move the cursor in the screen: in vi & vim command line mode, the cursor position is moved to the front of the word and letter to be edited. Key operation description h move the cursor one character to the left; j move the cursor one line down; k move the cursor one line up; l move the cursor one character to the right; Value + G move the cursor to the beginning of the row referred to by the "value; ^ H move the cursor to the beginning of the first line on the current screen; ^ M move the cursor to the beginning of the middle line on the current screen; ^ L move the cursor to the beginning of the last line on the current screen; 2. move the cursor inside the file line: vi & vim command line mode: move the cursor inside the line. Words are separated by spaces. punctuation marks are considered as a word. Key operation description 0 (number 0) move the cursor to the beginning of the row where the cursor is located; $ move the cursor to the end of the row where the cursor is located; w move the cursor to the first letter of the next word; b. move the cursor to the first letter of the previous word; e. move the cursor to the last character of the word where the current cursor is located; 3. Scroll down the screen: press the button operation description ^ F. Scroll down the screen; ^ B screens scroll up one screen; ^ E screens scroll down one line; ^ Y screens scroll up one line; ^ D screens scroll down half screen; ^ U screens scroll up half screen; z + Enter scroll the screen to make the row where the current cursor is located in the first line of the screen; z +. scroll the screen to make the row where the current cursor is located in the middle of the screen; z +-scroll the screen to make the row where the current cursor is located in the last line of the screen;