Saturday, August 22, 2009

how to ignore stderr in filter

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?

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: