I current cursor position insertion
A current cursor after insertion
0 Insert from another line
A at the end of the line where the cursor is inserted
I Insert at the beginning of the cursor
: Set Nu Sets line number
: Set Nunu Cancel line number
GG to First line
G to last line
$ move to end of line
0 move to the beginning of the line
Ng to the first few lines
N to the first few lines
X Delete the character at cursor location
NX deletes the last few characters at the cursor location
DD Delete Row of cursor, NDD delete n rows
DG deletes the line from the cursor to the end of the content
D Delete the line from the cursor to the end of the content
%s/old/new/g Full Text replacement
1,3s/old/new/g Specify line number substitution
/string Search N Search the next bar
Set IC is case insensitive
: Save W 2.txt as a file
R Replace cursor position
R always replaces the cursor position until ESC exits
U Cancel the previous action
YY copy
P Sticky Sticker
DD Cut
Common methods of Vim in Linux