Vim quickly moves the cursor to the beginning and end of the line

Source: Internet
Author: User

1. When you need to move the cursor quickly by line, you can quickly move the cursor to the beginning of the current line by using the edit key home on your keyboard. In addition, you can use the shortcut key "^" (that is, shift+6) or 0 (number 0) in command mode.

2, if you want to quickly move the cursor to the end of the current line, you can use the Edit key end. You can also use the shortcut key "$" (shift+4) in command mode. Unlike shortcut keys "^" and 0, the shortcut key "$" can be preceded by a number representing the number of rows moved. For example, using "1$" means the end of the current line, and "2$" represents the end of the line at the next line of the current row.

3, I is positioned to the beginning of the line, a is positioned to the end.

Vim quickly moves the cursor to the beginning and end of the line

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.