[Practical.vim (2012.9)]. DREW.NEIL.TIP03 Study Summary

Source: Internet
Author: User

As in the following section of code

We are going to make the code more readable, and adding spaces before and after the + changes to the following:

Make the change repeatable

f+Executes the find character command on the current line, the S command contains two actions, deletes the current character and becomes insert mode.
In the diagram we delete with the s command + , and then enter 空格+空格 , ESC exits insert mode into normal mode. A complete change was performed.

Make the motion repeatable

f+Performs a lookup of a character after the current line cursor, ‘+‘ and moves the cursor to where the character appears, ; repeating the last f Lookup command, that is, moving the cursor to the next + occurrence.

All Together Now

The command moves us to the next target, and the . command executes the last change, grouped together.

[Practical.vim (2012.9)]. DREW.NEIL.TIP03 Study Summary

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.