Vim actual line with screen line move command

Source: Internet
Author: User

When we use VIM, we often encounter the situation, that is, we entered the content is too long, the middle has not changed. When our line is longer than the computer screen, we will find that the text automatically
It's a wrap. However, if you use the line number to see, in fact, this new line is no line number. There are two concepts involved-the actual line and the screen line.
The actual line is mainly refers to you manually wrap, for example, you use the Enter or the O key and so on.
The screen line is a line of content that has reached the capacity of the screen and must be displayed on a branch.
These two line breaks have an effect on our usual line-moving commands. Our most commonly used JK line moves, said the actual line. If you want to move the screen line, you must use the GK GJ command (previously
The screen is all about H-L, and now think of it as inefficient. In the same way, we just need to move the command in the actual row before the price of a G, you can become the screen line command. Here, by the way, record the commonly used mobile life > order.

    J- move a real line    GJ- Move down one screen row    K-Move up one actual line    GK- Move up one screen line     0 - move to the beginning of the actual row (even if there is a    white spacecharacter at the beginning of the line) G0- move to the beginning    of the line of the screen (even if there are white characters at the beginning ofthe line) ^- move to the first non-whitespace character of the row    g^- move to screen line first non-blank word prompt    $- move to actual line end of line    G^-move to line end of screen

Vim actual line with screen line move command

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.