Tom Whittock schrieb:
Hi.

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?

Thanks,
Tom.

:h quickfix-valid

[...]

| Filtering messages
|
| If you have a compiler that produces error messages that do not fit in
| the format string, you could write a program that translates the error
| messages into this format.  You can use this program with the ":make"
| command by changing the 'makeprg' option.  For example:
|     :set mp=make\ \\\|&\ error_filter
| The backslashes before the pipe character are required to avoid it to
| be recognized as a command separator.  The backslash before each space
| is required for the set command.


Just a try,

Andy

--
EOF

                
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Reply via email to