Brisk Vim (vi): Recovery

Source: Internet
Author: User

Recovery is simple in vim, but it's hard to recover to a specific time period.

In my experience, sometimes using recovery is better than deleting the rewrite

Here we talk about the use of restore, Undo, and repeat commands

u            undo Last Command U            redo full line ctrl+r       redo.            Repeat E!          Full-text recovery

If you have experience using Office, then the undo and redo should be well understood

For example, I use DW to delete a word, press u will go back to not delete

Once I regret it, Ctrl+r will delete it again.

You can also use it to restore our content, no matter what you do in the bank

It's important to note that you can't go back to that line to recover after you've done it many times elsewhere.

Then the. Number can repeat your last order.

For example, DD deletes a line and you press it once. is equivalent to re-use the DD command once

If you press 5. That's repeating dd5 times.

Last E! When you write the code so messy

It can be restored to its original form, as long as you haven't used W, WP, or x to save

Reproduced, thanks http://www.cnblogs.com/nerxious/archive/2012/12/28/2837880.html

Brisk Vim (vi): Recovery

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.