Brisk Vim (6): Restoration

Source: Internet
Author: User

Restoration in VIM is relatively simple, but it is difficult to recover to a specific time period.

In my experience, it is better to use restoration to delete and rewrite data.

Here we will talk about the use of recovery, revocation, and repeated commands.

 

U undo the last command U restore the entire line CTRL+R redo. Repeat e! Full text recovery

If you have experience using office, undo and redo here should be well understood.

For example, if I use DW to delete a word, pressing u will return to the previous step.

Once I regret it, CTRL + R will delete it again

 

Among them, U is also very easy to use, it can restore the content of the bank, no matter what you have done in the bank

It should be noted that you cannot perform operations elsewhere multiple times and then return to the row to restore

 

Then, you can repeat.

For example, if a DD deletes a row, you can run the "." command again.

If you press 5, it will be repeated for dd5 times.

 

Last E! It's awesome.CodeMessy writing

It can be restored to the original form, as long as you have not used W, WP or X to save

 

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.