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