UP | HOME

Set External Diff of SVN as gvimdiff (Windows)

svn config (usually in: c:\Document and Settings\Application\Subversion\config)
diff-cmd = c:/diffwrap.bat

c:/diffwrap.bat
?? (????) OFF
REM Configure your favorite diff program here.
SET DIFF=“C:\Program Files\Vim\vim71\gvim.exe”REM Subversion provides the paths we need as the sixth and seventh REM parameters.
SET LEFT=%6
SET RIGHT=%7
REM Call the diff command (change the following line to make sense for
REM your merge program).
%DIFF% -d %LEFT% %RIGHT%
REM Return an errorcode of 0 if no differences were detected, 1 if some were.
REM Any other errorcode will be treated as fatal.

vim diff option
set diffopt+=iwhite
set diffopt+=horizontal