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