3 ms·
> > (3) There is no visual indicator of where you are are in your undo/redo history. > There might be plugins that somehow present this info in the interface.
by justinnhli 6y ago
> > (3) There is no visual indicator of where you are are in your undo/redo history.
> There might be plugins that somehow present this info in the interface.
The undotree vim plugin [1] does this, and gives both the file at the time as well as a diff of what changed.
[1]: https://github.com/mbbill/undotree https://github.com/mbbill/undotree
- dorian-graph 6y ago> undotree I was going to mention this plugin. I haven't fully mastered quickly jumping around in it, but it's one of those things that when it's useful, it's VERY useful.
- justinnhli 6y agoDitto. Unless I have to go back a lot of edits, I don't actually use the plugin that often. I've mapped my undo/redo keys to traverse the undo tree instead of the undo stack: nnoremap u g- nnoremap <C-r> g+ It takes a little bit of getting use to, but it takes care of most instance where I need a previous edit from a minute ago.