Vim command to delete text

Source: Internet
Author: User

X Delete the character under the cursor (abbreviated as "DL)
X Delete the character before the cursor (abbreviation of "DH)
D. delete from the current position to the end of the row (abbreviated as "d $)
DW is deleted from the current position to the beginning of the next word
The dB is deleted from the current location to the beginning of the previous word.
DIW deletes words on the cursor (excluding blank characters)
DAW deletes words on the cursor (including blank characters)
Delete DG to the end of the file
Delete DGG to the beginning of the file

"DL" delete character (Abbreviation: "X") | DL |
"DIW" deletes the word containing * DIW *
"Daw" deletes a word * Daw *
"DIW" deletes the contained string (see | word |) * DIW *

"Daw" deletes a string (see | word |) * Daw *
"DD" deletes a row | dd |
"Dis" deletes the sentence * Dis *
"Das" deletes a sentence * das *
"Dib" deletes '('')' blocks * Dib *
"Dab" deletes a '('')' block * dab *
"Dip" delete included paragraphs * dip *
"DAP" deletes a section * DAP *
"Dib" deletes a large block * Dib * containing *
"Dab" deletes a '{''}' block * DAB

 

 

From: http://blog.csdn.net/riag/archive/2009/05/14/4184120.aspx

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.