Re:Resolving the Great Undo-Redo Quandary
by lelanthran on Friday November 11, 2022 @10:34AM
(#33562070)
Yes, but GP wanted something that would just keep all deleted text.
Sort of, anytime you delete something, that text gets stored somewhere in case, 2 hours later, you realised you wanted it.
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.
https://github.com/simnalamburt/vim-mundo