Vim Common shortcut keys

Source: Internet
Author: User

1. Beginning and end of line

^: Move to the beginning of the line

$: Move to end of line

2. File header, end of file

GG: File Header

G: End of File

3. Show current position

Ctrl+g: Show Current position

Set Number: Sets display line numbers, set Nonumber: Turn off display

Vim tips: Do not switch to input mode before and after the exchange of characters

Sometimes want to change the order of two characters before and after, such as Calss to class, if you want to switch to input mode, delete, insert, then exit the input mode, and then save, very waste of time. In vim command mode, just move the cursor to the front of a, enter X, and then p, so that the order of a and l will change.

Vim Common shortcut keys

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.