Hello,

Tom Whittock <[EMAIL PROTECTED]> wrote:

> I'm running the vim under cygwin, and have set up my build process to
> execute via :make. This is great, but the build process reports
> filenames in DOS format, not the cygwin /cygdrive/* way. This means
> that when a quickfix command runs, vim will be asked to open
> "C:\dev\test.cpp", when I already have "/cygdrive/c/dev/test.cpp"
> open, and this causes issues for me.
>
> Is there any way I can insert my own handler in between the quickfix
> jump and buffer reading so that I can fix up the filename? Moreso,
> could I do this in general so that if I <gf> to "C:\dev\test.cpp", vim
> will interpret that in the cygwin manner?

I am in the opposite situation: I execute cygwin compilers from win32-gvim.
I'm maintening a filter-plugin that transforms *nix paths into win32 paths.
It should be easy to do adapt the perl script to do the contrary.

It can be found in compiler/BTW/cygwin.pl which is bundled into:
    http://hermitte.free.fr/vim/ressources/lh-BTW.tar.gz
(This vim plugin works, but it is still is alpha stage :-()

HTH,


--
Luc Hermitte
http://hermitte.free.fr/cygwin/
http://hermitte.free.fr/vim/

Reply via email to