You know what I usually do in that case ? Press undo until I’m back to no change haha. And each undo jumps you back to each change.
But this looks great and is worth considering, especially with how neat it is. Clever thinking on those buffer local mappings.
Yeah havn’t checked how to use undo-tree yet, gotta do that at some point, seems really useful.
But I have put this post’s keymap in my config and first impressions are pretty good. Now I just have to remember to use it haha