1. Open multiple Windows
Split up and down open the window
Vsplit around the window
Switch between CTRL + WW Windows
CTRL + WQ launch Current window
2. Move the cursor:
Figure 0: Move the cursor to the beginning of the current line
$: Moves the cursor to the end of the current line
G: Move to the last line of this file ng:n is a number, moving to the nth row of this file.
GG: The first line moved to this file is equivalent to 1G
3. Delete, copy, paste
Ndd:n is a number. From the beginning of the cursor, delete the down n column.
YY: The line where the cursor is copied.
Nyy:n is a number. The next n rows where the cursor is copied.
P,p:p Pastes the copied data to the next line of the cursor, and P is the previous line that is affixed to the cursor.
U: Restore previous action
CTRL + R: Redo the previous action.
decimal point '. ': Repeats the previous action.
4. Edit mode:
O,o: This is the case of the English O. o Insert a new line at the next line in the row where the current cursor is located. O means ' insert a new line at the top of the line where the current cursor is located '.
5. Block selection (visual block)
V-character selection, where the cursor passes through the counter-white display
V-line selection, the line that the cursor passes through is white
Ctrl + V block selection, you can select the data in a rectangular way
Y Copy the anti-white place
D Remove the anti-white place
Vim Common Command Summary