In vim, I would like to undo all changes in all buffers in chronological order.
for example, in a vim session, I usually have a lot of tabs open, and each tab has many windows. Using u to undo (or g; / g, to move through the list of changes), vim moves through the changes made to this buffer, even if new changes are made to other buffers. (Which I admit is what I want most of the time.)
But is there a way to revert to changes in all buffers in chronological order? (I assume that vim jumped from tab to tab, which would be fine.)
Why is this useful? ... basically, when I resume coding after a break, I can remind myself of βwhere I am,β that is, all the changes that I made last time.
(Using macvim 7.3)
UPDATE: the answers about using git / mercurial make good points (especially thanks for git stash ), but I would still find this feature useful, as it forces me to revert to the latest changes so that, with syntax coloring, inside vim, etc. .)
vim
mjeppesen
source share