Re: Problem doing diffs using win 2000

2006-07-14 Thread A.J.Mechelynck

Wolfgang Schmidt wrote:


   Hi,

I just installed gvim70 (from the self-extracting exe) on WIN 2K system. 
Everything seems to work, exept the diff functionality.

If I do a diff, e.g.

C:\Programme\Vimvim _vimrc -d _vimrc.bak

I get

2 Dateien zum Editieren
Das angegebene Programm kann nicht ausgeführt werden.

E97: Kann keine Differenz erstellen

so Vim complains, that the diff program can't be executed. But the diff 
program is present (C:\Programme\Vim\vim70\diff.exe) and it works (I 
tried it manually from the commandline).


Maybe there's a problem with diff under win2K? I've used the same 
installer executable to install gvim70 on some Win XP machines, and I 
did not have any problems with diff.


Thanx in advance

   Wolfgang






The following are wild guesses only:

1. Have you tried placing the -d option in front, as in

C:\ gvim -d _vimrc _vimrc.bak

?

2. Is your vim/vim70 directory part of your PATH ?

(Both untested.)


Best regards,
Tony.


Re: Problem doing diffs using win 2000

2006-07-03 Thread Wolfgang Schmidt

Yegappan Lakshmanan wrote:

Do you have the 'diffexpr' set in your .vimrc file?

:verbose set diffexpr?

- Yegappan

   Hi,

yes, it's set to MyDiff(), which is defined in _vimrc as

set diffexpr=MyDiff()
function MyDiff()
 let opt = '-a --binary '
 if diffopt =~ 'icase' | let opt = opt . '-i ' | endif
 if diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
 let arg1 = v:fname_in
 if arg1 =~ ' ' | let arg1 = '' . arg1 . '' | endif
 let arg2 = v:fname_new
 if arg2 =~ ' ' | let arg2 = '' . arg2 . '' | endif
 let arg3 = v:fname_out
 if arg3 =~ ' ' | let arg3 = '' . arg3 . '' | endif
 silent execute '!C:\Programme\Vim\vim70\diff ' . opt . arg1 . ' ' . 
arg2 . '  ' . arg3

endfunction

This work's fine for WinXP, but not for Win2k

Cheers,

   Wolfgang