Use vim to change file content

Use vim to change file content

Among them, use

vi 地址

Come use vim to open the file, and then press i to enter the change mode. Use the up, down, left, and right buttons next to the small keyboard to move the cursor to the desired position and make normal changes.
If you want to copy the outside content, after copying Ctrl+C outside, press shift+ins (next to the keypad) to paste.
If you want to copy the content of the file, after copying Ctrl+ins, press Ctrl+V outside to paste.
After the operation is completed, press Ctrl+C to end the change mode, enter: wq and press Enter to exit.

Guess you like

Origin blog.csdn.net/WeOnAir/article/details/109223496