VIM Basic Command
Occasional Updates
Insert operation
I normal insertion
A prompt insert from the next character
o Insert from Next line
I insert in the bank first
A at the end of the bank insert
O insert a new line at the cursor
Delete operation
x Delete the character of the cursor
NX removes the following n characters
DD is used to delete the bank
DG deleted to end of text
D Delete to end of line
Copy and paste
YY Copy Bank
Nyy copy starts from the bank n rows down
DD Cut
P Paste Down
P Paste Up
Single-character replacement recovery
R replaces the current character
R start replacing to ESC
U cancel up-step operation
Move operation
GG to First line
G to last line
Ng/:n to the first few lines
Replace and find
/string finding characters related to string
Search ignores case: Set IC
n searches for the next specified string
:%s/old_str/new_str/g Full Text replacement
: n1,n2s/old_str/new_str/g Range Replacement
Save exit
: Wq Save Exit
: W Save changes
: W New_file Save As
ZZ Save changes and exit
: q! Do not save exit
: wq! Save changes and eject (file owner and Root available)
Other commands
Cancel Highlight: Noh
VIM Basic Command