Ben Fritz wrote:
> When 'shelltemp' is set, the name of the temp file is inserted before the
> first '|' in a filter, which is wrong if the first | in the filer is just one
> of the arguments to the external command:
>
> gvim -N -u NONE -i NONE
> :set shelltemp?
> shelltemp
> :.!echo "test|moretest"
>
> line gets replaced with:
> "test <C:\tmp\VIi194.tmp |moretest"
>
> :set noshelltemp
> :.!echo "test|moretest"
>
> line gets replaced with:
> "test|moretest"
> as desired
>
> This actually came up while trying to filter a few lines through a Perl regex
> like %!perl -p -e "s/a|b/c/g"
Let's face it: Vim cannot parse shell commands. And I don't think we
should try. You will have to use some of the other shell* options to
work around this.
--
I started out with nothing, and I still have most of it.
-- Michael Davis -- "Tonight Show"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" 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