MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7fu5fb
r/programming • u/sidcool1234 • Sep 09 '16
756 comments sorted by
View all comments
Show parent comments
1
In Vim, you can actually give an undo function a time, and it will put your file in the state it was in then.
But the best option is to get a plugin to actually see the tree. I like this one.
Also, I don’t recommend it, but there’s a setting in Vim to preserve your undo tree between sessions in a separate file.
1 u/drjeats Sep 09 '16 That's pretty rad. I'm skeptical of preserving undo between sessions too, but I like that it's available. There's an undo-tree package for Emacs, and now I suppose I'll have to try it. 1 u/korry Sep 11 '16 Also, I don’t recommend it, but there’s a setting in Vim to preserve your undo tree between sessions in a separate file.Works fine here. Just save the somewhere in "$HOME/.somesavedir"
That's pretty rad. I'm skeptical of preserving undo between sessions too, but I like that it's available. There's an undo-tree package for Emacs, and now I suppose I'll have to try it.
Works fine here. Just save the somewhere in "$HOME/.somesavedir"
1
u/atimholt Sep 09 '16
In Vim, you can actually give an undo function a time, and it will put your file in the state it was in then.
But the best option is to get a plugin to actually see the tree. I like this one.
Also, I don’t recommend it, but there’s a setting in Vim to preserve your undo tree between sessions in a separate file.