Hi,

Chris Sutcliffe wrote:
> 
> I'd like to capture the stderr output from a program and capture it in
> a quick fix window.  So far I've tried:
> 
> :!command 2>command.out
> :cf command.out
> :copen
> 
> However, when running 'command 2>command.out' from within vim the
> command.out file is empty.  Running this outside of vim, command.out
> captures the stderr messages generated by the command.  Is there some
> trick to capturing stderr?

you might be able to do this by setting the 'shellredir' option to an
appropriate value before running the command. Something like

  :set shellredir=>%s\ 2>command.out

should work, but I haven't tested it.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

-- 
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

Reply via email to