Loading ...
Sorry, an error occurred while loading the content.

106983Re: how to ignore stderr in filter

Expand Messages
  • Christian Brabandt
    Sep 1, 2009
    • 0 Attachment
      Hi bill!

      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'

      It is illegal to rob a bank and then shoot at the bank teller with a water
      [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
    • Show all 7 messages in this topic