News for hackers. Stuff that matters.
Re:Resolving the Great Undo-Redo Quandary by quag on Friday November 11, 2022 @11:23AM (#33562734)
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.

Re:Resolving the Great Undo-Redo Quandary by lelanthran on Friday November 11, 2022 @05:43PM (#33567853)
But undoing is not what the original commenter wanted.
Re:Resolving the Great Undo-Redo Quandary by quag on Saturday November 12, 2022 @05:57PM (#33578025)
When set undofile is combined with :earlier and :later being used in place of undo and redo I think vim behaves as the author describes.