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

Source: Internet
Author: User
Compose repeatable Changes

There are many ways to implement an action in Vim, but choosing a method that performs the least steps can make the method more repeatable.
The following text we want to delete nigh.

1) Delete Backward


The cursor starts at H ,
dRepresents the Delete command, which b represents the first character of the word to be deleted (excluding the first character).
Then x delete this character.

2) Delete Forward


The cursor starts at H ,
bMove the cursor over the first character of the word,
dRepresents the delete command, which means the deletion of the range to the first word of the next word in the w Word prompt (excluding the first character),nigh no other words, so the nigh are deleted.

3) Delete an entire Word


The cursor begins at H , which d represents the Delete command, which indicates that the aw deletion range is the entire word of the cursor.

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