Brisk Vim (3): Delete

Source: Internet
Author: User
ArticleDirectory
    • Character Deletion
    • Delete words
    • Delete row

In this section, let's take a look at the deletion. The deletion command is relatively simple, but to make the deletion more efficient

You need to work with the various mobile commands described in section 1.

 

Character Deletion
 
X Delete the character where the cursor is located x Delete the character before the cursor

There is nothing to note here, but it should be noted that

Usually, a newbie will press X in a rush to delete a large piece of text.

If it is the first few days of use, but for a long time, you still need to learn the following DELETE command

 

Delete words
 
DW Delete to start of next word de Delete to end of this word including punctuation dB Delete to previous word including punctuation

Obviously, D is the abbreviation of delete, and X above is the old clearing meaning.

Here e Indicates deleting a word forward, B Indicates deleting a word backward, and the first section is clearly written by China Mobile.

Note that E B ignores punctuation, such as don't. They delete the punctuation as three words don, t, and T.

E B in upper case won't

 

Delete row
 
DdDelete a whole row d $ Delete the cursor position to the end of the row D0 Delete the cursor position to the beginning of the row

It is best to understand these three usage methods.

As I said at the beginning, deleting commands must work with mobile commands to play more roles.

You can take a look at the content of section 1 and try to delete a section or a section.

TIPS:3DD indicates deleting three rows. You must have known it before.

 

 

 

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.