Wednesday, July 11, 2012

Re: Cannot use vimdiff when started from cygwin

On Wed, July 11, 2012 17:01, skeept wrote:
> Hi,
>
> I am trying to start vimdiff from a cygwin shell but it is not working
> properly.
>
> I start it with
> gvimdiff.bat file1 file2
>
> and the error messages I get is:
> E810: Cannot read or write temp files
> E97: Cannot create diffs
>
> I tried setting different values for the TMP variable in _vimrc, something
> like
> let $TMP="C:/tmp"
>
> but this isn't doing any difference.
>
> vimdiff works fine if it is started from a cmd shell.
>
> I tried
> :!diff -v
> in gvim started from the cmd and from cygwin.
>
> From cmd I get:
> c:\windwos\system32\cmd.exe /c (diff -v)
> diff - GNU diffutils version 2.7
>
> From cygwin I get:
> /bin/bash -c "diff -v"
> The system cannot find the path specified.
> sheell returned 1
>
>
> Any idea how to make diff work on gvimdiff.bat started from cygwin bash
> shell?

Generally, mixing Cygwin and non-Cygwin programs always causes trouble.

In your case, I suspect, Vim fails to create temporary files for the diff.
So please show us the output of :echo tempname() from Cygwin vim and
gvim.

Is this directory accessible from gvim/Cygwin vim (consider Windows can't
cope with paths starting with / and Cygwin Vim can't handle Windows paths)?

regards,
Christian

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment