Vim Tips 5 Common operations

Source: Internet
Author: User

Vim
: Set Number
: Set Nonumber
N Move Command key
8l move eight characters to the right
3j Move Down three rows
3g: Move to the beginning of the third line
10$: Move down to 10 rows and navigate to the end of the line
: N1,N2S/WORD1/WORD2/GC
Replace the N1,N2 line between the word1 as Word2 and let the user confirm;
1$s/man/man/g
Nyy copy down n rows starting from the cursor line
NDD: Delete n rows starting from the cursor
NX: Remove n characters from the beginning of the cursor
U undo One operation
e! Undo All operations
: w Config.bak saved file name is Config.bak file
Insert the contents of the Turtle.txt file in the current directory after the last line and save
: R./turtle.txt
Open two files at a time
Vim filename1 filename2 filename3 filename4 ... filenamen
Switch between n n multiple files
Vim filename1 filename2

Vim Tips 5 Common operations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.