Vimshortcut Keys1.1 Vimthe mode in
1th Command mode G GG i A
2nd mode of editing I o C A
3rd Bottom-line mode:
1.2Move Cursor
1. Move the cursor to the first line of the file GG
2. Move the cursor to the last line of the file G
3. Move the cursor to the 100th line of the file 100gg
4. Move the file to the beginning of the line 0
5. Move the file to the line bit $
1.3Move and edit
1. Enter edit mode I
2. Insert a new line below the current line and enter edit mode o (lowercase letter O)
3. Insert a new line above the current line and enter edit mode O (capital letter O)
4. Delete the contents of the cursor position to the line bit and enter edit mode C (capital letter C)
5. Quickly reach the line position and enter edit mode a (capital letter a)
6. Delete the contents of the cursor at the end of the line D (Capital letter D)
7. Delete the current line and enter edit mode cc (Small Letter cc)
8. Cancel highlighting: Noh
9. Save and exit: Wq ZZ
10. Forced Exit q!
1.4Copy Paste Delete
1. copy cursor Line yy
2. Paste P
3. Paste 3p multiple times
4. Cut/delete DD
5. Delete the contents of the current line to the end of the file DG
1.5other
1. Display line number set Nu
2. Cancel line number set Nonu
3. Find content/
4. Look down N
5. Look up N
6. Undo Current Operation U
7.vim Query Help: Assist G
8. Replace All content:%s#yes#no#g
1.6Bulk Operations
1. Bulk Delete
Ctrl + V Visual block (enter bulk edit mode
Select up or Down
Press D to delete
2. Batch Increase
Ctrl + V Visual block (enter bulk edit mode
Select up or Down
Press I to enter edit mode
For editing
Press ESC to wait
1.7Common faults
1. disconnecting when editing mode
2. Edit the file again
3. Temporary files appear
4. Delete temporary files
Vim shortcut keys