On Sa, 22 Aug 2009, bill lam wrote:
> Another problem for filter. I found that vim will get both stdout and
> stderr from a filter. eg
>
> cat foo
> #/bin/sh
> ls --funny
> echo abc
>
> execute :%!foo will copy all of the following to vim buffer
>
> ls: unrecognized option `--funny'
> Try `ls --help' for more information.
> abc
>
> It it possible to exclude output from stderr?
set srr=">%s"
:h 'srr'
regards,
Christian
--
It is illegal to rob a bank and then shoot at the bank teller with a water
pistol.
[real standing law in Louisana, United States of America]
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment