Plug-in commands commonly used by "vim"
[ESC]Exit Edit(input,Insert)mode, back in command mode(Common)
I, I
Enter insert mode(Insert mode):
Ito "Insert from the current cursor location",Ifor "The first non-null in the current row
Geff start inserting ". (Common)
A, a
Enter insert mode(Insert mode):
Ato start inserting from the next character where the cursor is currently located,Afor the FROM cursor
start inserting at the last character of the row. (Common)
O, O
Enter insert mode(Insert mode):
This is the English alphabet .Ois case-sensitive. oto insert at the next line where the cursor is currently located
a new line ";Oinsert a new line on the previous line where the cursor is currently located! (often
with)
R
Enter replacement mode (Replace mode) :
R will only replace the one character where the cursor is located at a time;( common )
===========================
H Cursor moves one character to the left
J Cursor moves down one character
K cursor moves up one character
L Cursor moves one character to the right
NG
N n 20g
section line
GG Move to the first line of this file, equivalent to 1g Ah! ( common )
X
in one line of words,x deletes a character backwards ( equivalent to the [del] key )
Nx
n is a number that continuously deletes n characters backwards. For example, I'm going to delete ten
characters, " 10x".
DD Delete the entire column where the cursor is located ( common )
Ndd
n is a number. Delete the down n column where the cursor is located , for example, 20dd to delete the column ( often
use )
D1G Delete all data from the first row of the cursor
DG deletes all data from the last row of the cursor
YY the line where the cursor is copied ( common )
Nyy
n is a number. The bottom n column where the cursor is copied , for example, 20yy is a copy of the column ( often
use )
P, p
Pto paste the copied data on a line below the cursor,Pthen stick to the cursor on a row! Lift
For example, I currently have a cursor in the20and has replicated theTenrow data. Then press theP
after the that10The row data will be posted in the original -after the line, that is, the +line to start pasting.
But if it is pressedPit? So the original first -The guild was pushed to become -line. (often
with)
Np:nis a number, which indicates how many times it is pasted
URevoke
Ctrl + Y: Redo
==========================
last-line mode
: W (Save File)
Vim plugin on the editor, common to the quick parts