After running :make
, the quickfix window displays the compile command and other stdout
messages from the makefile, but it doesn't display any errors. Everything but stderr
messages are displaying. How do I enable stderr
messages?
2 Answers
You have to add this to your vimrc:
set shellpipe=2>
...to enable stderr
output in the quickfix window.
To collect only stderr, use:
set shellpipe=2>
To collect both stderr and stdout:
set shellpipe=>%s\ 2>&1
Or, to collect both and watch builds as they proceed:
set shellpipe=2>&1\ \|\ tee