On 2009-12-03, John Beckett wrote:
> Steve Hall wrote:

> > I guess I still don't quite understand why MyDiff is
> > required, internally Vim should be able to deal with it's own
> > diff.exe. User options should be allowed to override it, but
> > why does the default install have to condition use of diff in
> > the vimrc instead of the binary?
> 
> I'm too lazy to check at the moment (I build my own Vim), but
> does the official Windows distribution of Vim include diff.exe?
> I have an old system with "Vim without Cream" and its diff.exe
> (given "--version" argument) says
> 
>     diff - GNU diffutils version 2.7
> 
> On Windows, the diff that I use is GNU diffutils 2.8.7 but I
> think it requires gutils.dll.
> 
> A quick test makes me think that the diff 2.7 in Cream will work
> with no MyDiff function. I can well understand that you do not
> want to fiddle around distributing the current diffutils, but
> perhaps you could try removing the following from vimrc:
> 
>     set diffexpr=MyDiff()
>     the MyDiff() function
> 
> then check if gvim can still do differences. I'm not entirely
> sure why, but my quick test indicates that with gvim.exe and
> diff.exe in the same directory (a directory that is not in the
> PATH), gvim can still invoke diff with no MyDiff. I guess that
> whatever system call gvim is using to spawn diff is causing
> Windows to search the same directory as gvim.

I just ran that experiment on this minimalist system on which I had
installed vim "without Cream" 7.2.303.  I commented-out the "set
diffexpr=MyDiff()" line in my _vimrc, then executed "Diff with Vim"
from the Explorer context menu on a couple of files.  It worked
fine!

Running "diff.exe --version" on the diff.exe in vim\vim72 also shows

    diff - GNU diffutils version 2.7

Regards,
Gary


-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui