On 2010-04-11, esquifit wrote: > I'm using gVim under Windows XP and set cygwin's bash to be the shell > enviroment for gVim.
[...] > In other words, seems that system correctly expects cygwin syntax > but filereadable() still expects Windows native paths. > > Is this an inconsistency, or am I missing some obvious point? Is there > any better way to deal with this situation? What you're missing is that the Vim you're using interfaces with the Windows OS primarily via the Windows OS API, which expects Windows-style path names, whereas the system() call uses the shell to interface with the OS, and you've specified Cygwin bash as your 'shell', which expects Cygwin's Unix-style path names. If you use a Windows gvim and a Cygwin shell, you have to manage these path name differences. A number of people on this list have come up with partial solutions but none of them have worked seamlessly enough to suit me. My solution is to use a Cygwin vim in a terminal when I need to use Vim with Cygwin tools and to use a Windows gvim when I need to use Vim with Windows tools. Regards, Gary -- 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 To unsubscribe, reply using "remove me" as the subject.
