History
Article Edit this page Discussion

List changes to the current file

From Vim Tips Wiki

Jump to: navigation, search

Tip 1300 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.

[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.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Doctor Who
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Mystery Science Theater 3000
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"List changes to the current file"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation