Use of Vim

Source: Internet
Author: User

Vim's positioning

Home: Cursor moves to the beginning of the line

End: Cursor moves to end of line

PageUp: Turning pages on the screen

Pagedow: Page DOWN screen

Shift+g: Positioning line as go to line 10 10shift+g

Shift+gg go to end of file, GG go to beginning of file

W, b Move backward and forward one word

Delete Content

Delete 3 Rows D3D

Delete Current line DD

Remove d+n+ left arrow right ARROW to n left character

Shift+j Delete the return key at the end of a line

Undo Action

U Undo Previous Action

Ctrl+u Restore Previous action

Copy and paste

Copy three lines of content y3y

Copy left 3 characters Y3 left ARROW to the right of the same

P Paste

Find content

/Backward Lookup

? Search forward

N Tune to Next

Replace content format: Find range s/find content/replace content

The lookup range% represents the global, (N.M) represents the line from N to M, and $ represents the last line

Use of Vim

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.