You have to practice it yourself, or you can't remember.
Move cursor: h,j,k,l key
^
K
J
V
The H key is on the left and moves to the left each time it is pressed
The L key is on the right, each time you press the right move
q!< return > Exit
X-Key Delete
DW Key Delete
d$ Delete from cursor to current trailer
I key for insert operation, press ESC to exit after operation
Press the A key to add text
: Wq < Enter > save file and Exit
Vim is the command to start the VIM editor
2w is the cursor moves forward 2 words, 3w moved 3 d2w is deleted
3e backwards three, 4e as such
0 (number 0) moves the cursor to the beginning of the line
Operator--representing the things to be done
number--can append a number, representing the number of repetitions
motion--action that represents moving on the manipulated text, such as W for word (word), $ for line end, etc.
DD deletes the row, 2DD deletes two rows and then presses the P key to paste---p key to place the last deleted content behind the cursor
U undo last executed (once) command
U revert to the original state of the line, to undo multiple u,u operations, enter CTRL+R
Select the wrong location, press R + Enter correct to replace
CW is magical, try CE not only deletes a word, it is also you enter the insert mode
Delete all after the C $ cursor
G jump directly to the last line of the file, GG jumps directly to the first line of the file Ctrl+g can view current you most in the column information
Enter the line number after the GG or G operation, then enter G to jump back
Enter "/" Add any character, enter the word multibyte carriage return can find the character you just entered, and then enter N, you can find the next to enter the same character as before you, if the input is n then go forward and you enter the same number, "/" Replaced by "?" The reverse
In a "(" or "}" enter%, you can jump to match ")" and "}" at
!ls LS!dir can list the contents of the current directory
:! So you can execute the outer shell command.
All commands must be knocked < Enter > key to end,
Select an unused file name, w+ This file name to create a new
When you start vim again, if you vim+ the above file name, it will be the same as the last time you saved the file.
:! del file name (under MS-DOS)
:! RM file name (under Unix)
A selective Save command moves the cursor somewhere, presses the V key, and then moves the cursor, where it appears highlighted
If this is the input W < filename > in the confirmation see: ' < ', ' >w file name after press ENTER, VIM will write the line just selected to < file name >, you can
Command:! LS View
R can replace several different characters consecutively
First knowledge of VIM