Vim quickly selects, deletes, copies content in quotation marks or parentheses

Source: Internet
Author: User

Vim has recently discovered some Vim, it is very practical to quickly select, delete, and copy content in quotation marks or parentheses. This greatly improves the editing efficiency. The following command can be used to operate the content in the punctuation. Ci', ci ", ci (, ci [, ci {, ci <-Modify the text content of these paired punctuation marks, di", di (or dib, di [di {or diB, di <-respectively Delete the text content yi ', yi ", yi (, yi [, yi {, yi <-copy these pairs respectively. the text content vi ', vi ", vi (, vi [, vi {, vi <-respectively select the text content in these paired punctuation marks. If you change the above I to you can connect to the paired punctuation. For example, if the text to be operated is as follows: 111 "222" 333 move the cursor to any character of "222" and enter the command di ", the text will become: 111 "" 333 if you enter the command da ", the text will become: 111333. Especially for Vim-encoded students, it is really powerful.

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.