Vim tips: Frequently used cursor jump commands

Source: Internet
Author: User

There are a plethora of commands in vim, and learning on demand is the only way out. Here is a summary of several commonly used cursor jump commands.

Basic movement:

H (toward left) J (down) K (UP) L (Small letter L, toward right)

Move between rows:

Quick jump to end of file: g (capital letter G)

Quick jump to the first line of file: 1G (the number 1 plus write letter g)

Skip quality Specify nth row: NG (number n plus write letter g)

Move quickly to the beginning of the line where the cursor is located: The Home key or 0 (number 0) or ^ (that is, SHIFT + 6)

Move quickly to the end of the line where the cursor is located: End key or $ (that is, SHIFT + 4)

Vim tips: Frequently used cursor jump commands

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.