2. Page Up (Previous Page) Shortcut: Ctrl+B.
3. Query "ab":/ab
Three command modes of virtual instrument;
1, command mode, used to input commands.
2. Insert mode, which is used to insert text.
3. Visual mode is used to visually highlight and select text.
Extended data:
After pressing ESC to enter command mode, you can use the following keys to move the cursor:
1, j moves down one line;
2.k moves up one line;
3.h moves one character to the left;
4.l Move one character to the right;
Different versions give vi three different working modes. Vi has three working modes: command mode, text editing mode and last line mode. In different working modes, the operation methods are different.
1, command mode:
Command mode is the working mode after starting vi, which can be converted into text editing mode and last line mode. In command mode, any character entered from the keyboard is interpreted as an edit command and will not be displayed on the screen. If the input character is a legal vi command, vi will complete the corresponding action; Otherwise vi will issue a warning.
2. Text editing mode:
Text editing mode is used for character editing. Enter commands such as I (insert command) and A (additional command) in command mode to enter text editing mode. At this time, any input characters are displayed on the screen as file contents through vi. Press Esc to return from text editing mode to command mode.
3. The last line mode:
In command mode, press the ":"key to enter the last line mode. At this time, vi will display the year of ":"symbol at the bottom of the screen as the prompt of the last line mode, waiting for the user to input relevant commands. After the command is executed, vi automatically returns to the command mode.
References:
Baidu Encyclopedia-6