Vim stores all deleted text automatically, up to a max of 10, I think.
Probably very possible to extend that with some advanced vimscripting.
Probably very possible to extend that with some advanced vimscripting.
Makes me wonder honestly what tool in widespread use doesn’t have this? Notepad?
Sort of, anytime you delete something, that text gets stored somewhere in case, 2 hours later, you realised you wanted it.
Undoing a change from 2 hours ago in the same editing session is the trivial use case for undofile.