5 ms·
Yes, vim’s “set undofile” will create a persistent undo file that stores all changes to the file indefinitely. You can undo changes made months ago over reboots
by quag 4y ago
Yes, vim’s “set undofile” will create a persistent undo file that stores all changes to the file indefinitely. You can undo changes made months ago over reboots. If you move the undo file between machines, you can undo on different computers.
Undoing a change from 2 hours ago in the same editing session is the trivial use case for undofile.
- lelanthran 4y agoBut undoing is not what the original commenter wanted.
- quag 4y agoWhen set undofile is combined with :earlier and :later being used in place of undo and redo I think vim behaves as the author describes.