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"

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

Raspunde prin e-mail lui