History Report a problem
Article Edit this page Discussion

List changes to the current file

From Vim Tips Wiki

(Redirected from VimTip1300)
Jump to: navigation, search

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


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
Pushing Daisies
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Godzilla
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


.