List changes to the current file
From Vim Tips Wiki
Tip 1300 Previous Tip • Next Tip
Created: August 10, 2006 Complexity: basic Author: Markus Trenkwalder Minimum version: 5.7 Karma: 73/28 Imported from: Tip#1300
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.
[edit] References
[edit] 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.
