Earlier quoted context omitted.
Fantastic! Thank you so much. I think it's a fairly common situation that people using programming tools (VS Code, git, vim etc) can go for years without realizing there is a built-in feature that can solve exactly a problem they always struggled to solve. I'm not sure how to surface that sort of functionality in the tool, but I'm glad HN is here to point it out. One similarly cool thing I learned in a recent comment…
It helps to read the VS Code monthly update release notes, it takes about 3 min, but you'll be aware of all new features they introduce.
Resolving the great undo-redo quandary
241–247 of 247 posts
Re: Resolving the great undo-redo quandary
#242Earlier quoted context omitted.
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.
But undoing is not what the original commenter wanted.
Re: Resolving the great undo-redo quandary
#243Re: Resolving the great undo-redo quandary
#244Re: Resolving the great undo-redo quandary
#245Earlier quoted context omitted.
In the proposed article, it sounds like if you accidentally typed anything you would have to hit "undo" twice instead of "redo" N times to get back. Still seems confusing.
But if you accidentally type something now you can't just hit redo N times to get back. It's gone.
Re: Resolving the great undo-redo quandary
#246Earlier quoted context omitted.
Every non-modal editor I’ve used is significantly slower at editing text than Vim
We have been through this argument many times. Here's Tog at Apple in 1989: https://www.asktog.com/TOI/toi06KeyboardVMouse1.html And even then, it was old news. There was behavioural research in the 70s, the same kind that was used for designing cockpits (and which saved lives), showing that modal interfaces were undesirable. It can well be that you're a god with vim. But odds are, then, that you could have been a go…
EDIT: here's an HN discussion https://news.ycombinator.com/item?id=28067729