Subversion diff with vim
<1 min read
Once in a while I have to use Subversion on a Linux box. Not a big deal, except for diffs. The standard svn diff
output is not the most readable. Vim, or more exactly vimdiff, does a terrific job at displaying differences between files side-by-side. Here's a little Bourne shell script I wrote that uses vimdiff to view the differences between a local file and the latest revision in the repository:
Nothing too fancy. It uses svn cat
to get the latest rev, saves it to a temporary file, and opens both files in vimdiff:
The temp file is deleted as soon as vimdiff is quit.
[@389]
I also just found svncommand.vim, a nifty Subversion integration plugin.
Comments
12 (Closed)
christopher baus
Feb 14, 2006
Erik C. Thauvin
Feb 14, 2006
Marius Scurtescu
Feb 15, 2006
Fernando Brucher
Apr 3, 2006
Erik C. Thauvin
Apr 3, 2006
Francesc
May 11, 2006
Erik C. Thauvin
May 11, 2006
fREW Schmidt
Nov 25, 2006
wulf
Mar 25, 2007
Balbir Singh
Apr 6, 2007
Carlo
Jan 16, 2011
Erik C. Thauvin
Jan 18, 2011