ZyX wrote:

> > I don't get an error when using an actual file.  My shell doesn't accept
> > this syntax.
>     echo "redir => s:foo" > /tmp/redir
>     vim -u NONE -S /tmp/redir -c 'redir => g:bar'
> works for me as well. Vim-7.3.145.

Well, the error message is a bit strange, but what you are doing is
wrong: you don't end the redirection in the script.  When you add "redir
END" in the sourced script everything is OK.

I suppose Vim could give a better error.  Or stop redirecting at the end
of the sourced script.

-- 
ARTHUR: The swallow may fly south with the sun, or the house martin or the
        plover seek warmer hot lands in winter, yet these are not strangers to
        our land.
SOLDIER: Are you suggesting coconuts migrate?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

Raspunde prin e-mail lui