Sidney Liebrand's blog - Vim tip: persistent undo

from blog Sidney Liebrand's blog, | ↗ original
Usually, when you open a file in your editor, make some changes, save and close, you lose the ability to ctrl+Z. Vim has a built in mechanism to persist changes made to files on disk. This may not sound that exciting, but what if your editor crashes while you have a set of changes you may want to revert stored?