Vim Editor Keyboard Shortcuts

Command mode
the hjkl
G end of line
gg beginning of the line
L of the current screen of the line
ctrl + f ctrl + b
Remove rear x remove front X-
dd Remove the entire line n dd delete n lines
yy Copy p paste n yy copies n rows
r alternatively R replace all
u ctrl + r revoked anti
select a V
V entire row selection


Insert mode
i insert a character before the cursor
I is inserted into the first row of the current row of
a cursor after inserting a character
A is inserted into the current line is not
o the current row of the next line
O on the current line's first row
line mode
command mode:
WQ write and exit
q quit
q Force quit!

 

Guess you like

Origin www.cnblogs.com/ldsice/p/11106452.html