Summary vim editor of commonly used commands
0 Abstract
Summarize some vim CRUD command, the job has been to use vim editor to modify the configuration file, and slowly fell in love with this editor.
1 Command Description
How fast the beginning of the line to move the screen and end of the line (uppercase): H, L
Page forward ctrl + f, turning back ctrl + b
insert
i formal inserted, a position of the insertion cursor
Show Line Numbers
set nu(set number)
Jump a row
: + Line number
Skip to end of file
G
Skip to file header
gg
Stick
Copy the line yy
3yy Copy 3 lines (empathy)
copy
p paste, paste before the cursor P
delete
Delete the wrong recovery, u
dd delete an entire row
3dd delete the back three rows, empathy
Delete the specified line: 9,16d, delete rows 9-16
Seek
: / A lookup from a look behind the current cursor position. Then press n to view the next
:? Finding a lookup from a front of the current cursor position.
3 summary
Being thought of so many, after slowly increase