sponsor Vim development Vim logo Vim Book Ad

vimdiff+vcs : Drop-in replacement for vimdiff and gvimdiff featuring automatic CVS diff

 script karma  Rating 4/1, Downloaded by 842  Comments, bugs, improvements  Vim wiki

created by
Adam Katz
 
script type
utility
 
description
Full-blown support for CVS diffing.  Like vimscript #1209 (and unlike vimscript #90 ), this is a command-line program that merely figures out what to compare a file against.  Unlike both, this is a drop-in replacement that doesn't require getting used to a new command with different syntax.  it just works.

In addition to all vim flags, vimdiff+vcs supports the CVS revision denoting flags (-r, -D).  vimdiff+vcs also supports filesystem snapshots (e.g. those from a NetApp mountpoint), automatically parsing through the archives and comparing the specified file to the most recent version that differs.

The key useful feature here is that it's fully automatic; you just type "gvimdiff mycode.c" and it pops up the differences between mycode.c and the latest other copy available, be it the CVS HEAD or a more recent version from your snapshots.

If I ever do start using subversion with more regularity, this script will support that too.  It's even named "vimdiff+vcs" rather than "vimdiff+cvs" in anticipation of that (well, also for the .snapshot support).
 
install details
Install to /usr/local/bin/vimdiff and symlink it from /usr/local/bin/gvimdiff

You can put it anywhere in your path as log as it is earlier (or in place of) than the official (g)vimdiff symlinks.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimdiff 1.6 2009-08-21 6.0 Adam Katz better fetch call
vimdiff 1.5 2009-08-21 6.0 Adam Katz Initial upload
ip used for rating: 3.19.30.232

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github