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

Source: Internet
Author: User

Delete Around, or change Inside

Vim ' s text objects fall into II categories:those that interact with pairs of delimiters, such as i), I ", and it, and Those that interact with chunks of text, such as words, sentences, and paragraphs.

The text object in Vim can be divided into two kinds, one is the delimited like I in Tip51, I ", it and so on, the other is the text block, such as words, sentences, paragraphs.

The IW contains the current word from the first character to the last character, and AW also contains the current word from the first character to the last character, but also contains a space space before or after the current word.

dawThe command can be divided into two parts, which d means delete, aw select the word at the current cursor and a space before or after it, or daw delete the word with the current cursor and a space.


ciwCommands can be divided into two parts, c indicating changes, iw selecting the current cursor is the word, change the caw current cursor is the word, enter the insert mode, enter most , complete the change.

We could say that the d{motion} command tends to work well with Aw, as, and AP, whereas the c{motion} command works Bett Er with iw and similar.
In general, commands are often followed with commands, followed by commands d{motion} aw,as,ap c{motion} iw,is,ip .

[Practical.vim (2012.9)]. DREW.NEIL.TIP52 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.