3 ms·
> * The undo behavior is insane, I'm constantly double-tapping u, because undo brings your cursor back to your last edit, but doesn't undo it. Unless your curso
by mekster 5y ago
> * The undo behavior is insane, I'm constantly double-tapping u, because undo brings your cursor back to your last edit, but doesn't undo it. Unless your cursor is already where it should be, then it will undo. So it's uu then ctrl+r (sometimes).
This is a much better way than stock vim. In vim, if I scroll elsewhere and undo, it jumps back to the last edit and already undone the edit and sometimes I'm not sure what got changed but in IntelliJ it jumps back first, so I can see what will change before it gets undone and also I can just use 'u' whenever I want to go back to the last edit's position.
- doix 5y agoI guess it depends what your typical case for undo is. For me, 99% of the time I remember the changes I made an want to undo them, so pressing a button twice is annoying, especially since it's not consistent. If I don't remember what I was doing, then I can press ctrl+r to redo and see what changed, but to me that is the exception and I'm fine taking extra clicks to do it. Everyone has preferences, I wish this was configurable :P. > also I can just use 'u' whenever I want to go back to the last edit's position. I use ctrl+o for this.