W Key to move the cursor to the beginning of the next word
b Key to move the cursor to the first word
$ move cursor to end of line
^ Move the cursor to the first non-whitespace character of the bank
0 keys to move the cursor to the beginning
The F key is followed by a single character, which can be searched from left to right in the bank.
The F key is followed by a single character, which can be searched from right to left in the bank.
The T key functions the same as the F key, but the cursor stops at the first character of the specified character
The T key functions the same as the F key, but the cursor stops at the next character of the specified character
If you click on one of the four keys in the f,f,t,t and find yourself pressing the wrong button, you can press the <ESC> key to cancel the operation.
G Key to separate the G key will move the cursor to the last line, G, preceded by a number can be said to move the cursor to the specified line
% when the cursor is over an opening parenthesis or a closing parenthesis, press% to move the cursor over the matching parentheses, and a number before% to move the cursor in the file by a percentage
: Set number Displays line numbers
: Set Nonumber off display line numbers
Ctrl-g Display Status lines
Ctrl-u scroll up half the screen
ctrl-d Scroll down half a screen
The V key enters visual mode, and you can then move the cursor to select the text
The D key can delete the selected text in Visual mode, and pressing the D key in normal mode can then move the cursor, removing everything from the position of the cursor to the position where the action will move the cursor. For example, DW deletes content from the cursor position to the next word
The D key removes all content at the end of the line at the cursor position
The C key functions the same as the D key, but when you delete the content, it also allows you to enter insert mode
. Key (decimal point) repeats the last command operation
The J key merges the selection into one line under visual mode, and in normal mode merges the line with the next line
The R key is followed by a character that replaces the character with the cursor followed by this character
~ Change the case of letters
The Q key followed by a register name, the name must be in the character A-Z, and then hit a series of commands, the command is completed and press the Q key again, so that a series of commands will be saved in the specified register, and then use the @ Key register name, you can repeat the register stored in a series of commands
:d Igraphs can see how to enter some characters that are not on the keyboard
Vim Editor Beginner (ii)