Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

make within VIM, error message lost in quickfix.

1 view
Skip to first unread message

Wayne Wang

unread,
Dec 3, 2009, 4:11:35 AM12/3/09
to dj...@delorie.com
Hi there!
I'm used to work with bash and vim in DJGPP, but I always have some problem
when compile the souces in VIM.
I set shell to bash in vim, and when run :make, I want the compiling error
could be directed to quickfix window.
However, only the standard outputs were displayed in the quickfix, compiling
errors were displayed in the screen from error output.

So, please, anyone know how to let all the outputs displayed in the quickfix
window.

Thanks.
Wayne

Rugxulo

unread,
Dec 5, 2009, 2:07:57 AM12/5/09
to
Hi,

I haven't ever used VIM for compiling, so I can't say what the best
answer is. However, GCC prints errors on stderr, which by default
probably isn't being redirected. Bash should support "2>" or ">&" or
just use DJGPP's Redir.exe (e.g. "redir -eo gcc blah.c -o blah.exe" or
"redir -eo make").

Is that what you meant? For VIM specific questions, you could also ask
on news://comp.editors as they are obsessed with it over there.

0 new messages