Vim has four modes of normal Mode,insert Mode,commond mode and visual mode
I key into insert mode, insert the character before the cursor cover
A key enters insert mode, which is inserted after the character that is covered by the cursor
o key into insert mode, insert a new line below the line where the cursor is located
o key into insert mode, insert a new line above the line where the cursor is located
<ESC> key back to normal mode
The H,j,k,l key uses these four keys to move the cursor, H is left, L is right, J is down, K is up
X key to delete a single character
U-key undo Last Edit
U key to undo edits to a whole line, press U again to restore
Ctrl-r undo U-Key Revocation operation
ZZ Save and exit
: q! Do not save exit
DD Delete the entire line where the cursor is located
: Help opens and enters the assistance window
: Help subject get assistance with subject , which shows the command help for normal mode by default, to specify that other modes need to be prefixed, such as specifying the insert mode plus i_ prefix
You can add a number before almost any action, indicating the number of times the action was executed
Enter vimtutor on the command line to open a tutorial that comes with vim
Vim Editor Starter (i)