3 ms·
> U is the same as u except it does the undo as a new change, which is functionally useless. Unless I’m mistaken, this is the default undo behavior for emacs..
by michaericalribo 7y ago
> U is the same as u except it does the undo as a new change, which is functionally useless.
Unless I’m mistaken, this is the default undo behavior for emacs...What horror to only have vim’s forward and backward undo history! Said the emacser on the vimmer’s post.
- mden 7y agoMaybe misunderstood what you meant, but vim's undo is not linear but rather tree-like. You can undo, make a change, and still get back to the initial state. https://vim.fandom.com/wiki/Using_undo_branches https://vim.fandom.com/wiki/Using_undo_branches Edit: this also seems to be in the original post
- michaericalribo 7y agoYou are definitely right, and I still find the emacs undo confusing...but I did think it was funny that one dev’s trash is another’s treasure—now that I know what to expect, I even kind of like the emacs way, but when I first switched I hated it.
- fwip 7y agovim also has "undo tree" functionality built in, the interface is just different than emacs's. :help undo-branches http://vimdoc.sourceforge.net/htmldoc/undo.html#undo-branches http://vimdoc.sourceforge.net/htmldoc/undo.html#undo-branche...
- roelschroeven 7y agoU is not the same as u, though: u undoes the last change, U undoes all latest changes on one line.