Work with cainiao to learn about common Vim commands of the National embedded experiment

Source: Internet
Author: User

The use of VIM in Linux is indeed very important, and many times you don't need to forget it. Therefore, you can record Common commands here. For simple insertion modes or command modes, you don't need to elaborate on whether to save or not.

 

1. Number + gg

Move cursor to numeric row

 

2.g

Move cursor to the last line

 

3. Number + YY

Copy the number row under the current cursor

 

4. Number + dd

Delete A number row under the current cursor

 

5. p

Paste the content just after (number + YY) under the current cursor

 

6. u

Undo

 

7. crtl + R

Cancel

 

8.: 1, $ S/BB/CC/g

Replace string BB with CC from the first line

 

8.:

Split into two pages

 

9.: SP

Split into two pages

 

10. CTRL +]

Jump to the Function

 

11. CTRL + T

Skip

 

12. V and CTRL + V

You can select the specified content under the current cursor

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.