News for hackers. Stuff that matters.
Re:Why is it so hard to see code from 5 minutes ago? by dorian-graph on Friday February 19, 2021 @07:19AM (#26192341)
> 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.

Re:Why is it so hard to see code from 5 minutes ago? by justinnhli on Friday February 19, 2021 @06:52PM (#26199643)
Ditto. 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.