Vim Tips Wiki
Advertisement
Tip 1300 Printable Monobook Previous Next

created August 10, 2006 · complexity basic · author Markus Trenkwalder · version 5.7


Some times I wonder what was changed in the current file. The :changes command lists all changes to the file. Type g; to step back to the position of previous changes in the changelist. Type g, to step to the position of the next change.

References

Comments

And it works even after closing the file! I just used your tip to see what I changed in my todo list during the last days.


This is part of Vim 7's undo-branching; the functionality lets you make some changes, undo some of them, make different changes, and then have both trees of changes maintained, allowing you to go back and forth between different branches of changes.


Advertisement