Wednesday, July 11, 2012

Re: Cannot use vimdiff when started from cygwin

> 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

Hi Christian,

the output for echo tempname() in gvim/windows is:
c:\htemp\tmp\VIBFED5.tmp

while the output for gvim/windows started from cygwin is:
c:/htemp/tmp/VIA693A.tmp

I use
if has("win32")
let $TMP = 'c:\\htemp\\tmp'
endif

to set the name of the variable but when started from cygwin it ends up with the separators in the oposite direction /.

Is it possible to set it in such a way that it would work?

Thanks!


--
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