Related questions
How to go back (ctrl+z) in vi/vim
In normal text editors [with all due respect to Vim] there is a shortcut Ctrl+Z when you have done something nasty and want to return to the previous version of the text. Like BACK button in Word. I wonder …
Using Vim's persistent undo?
One of the new features in Vim 7.3 is 'persistent undo', which allows for the undotree to be saved to a file when exiting a buffer.
Unfortunately, I haven't quite been able to get it properly enabled, or I must be …
How is the undo tree used in Vim?
This answer says:
Vim's undo/redo system is unbeatable. Type something, undo, type something else, and you can still get back the first thing you typed because Vim uses an undo tree rather than a stack. In almost every other …