VIM has 3 modes: General mode, edit mode and command mode
General mode
[Email protected] ~]# Cp/etc/dnsmasq.conf/tmp/1.txt
[Email protected] ~]# Vim/tmp/1.txt
H left, L right, J down, K up
Press X once and remove an O backwards
X, remove one character forward
10x, remove 10 characters backwards
DD, the line where the cursor is clipped
NDD, which cuts the n rows after the line where the cursor is located
3dd
yy, copy the row of the cursor, NYY from the line where the cursor is, and copy the n rows down
P from the line where the cursor is located, paste the content that has been copied or pasted down, and p pastes the content that has been or pasted up, starting at the line where the cursor is located
P
P
U Restore previous step
V, press V to move the cursor will select the specified character, and then you can achieve copy and paste operations
Text Editing tools Vim