Sunday, April 1, 2012

Re: Write register contents to file

On 04/01/12 04:18, Marcin Szamotulski wrote:
> What about
>
> :exe "!echo ".variable."> /tmp/file"

Of the replies, don't use this one. It's susceptible to odd
behaviors depending on the content of the variable (akin to
SQL-injection)

Go with Martin's :redir or John's writefile() instead.

-tim


--
You received this message from the "vim_use" 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

No comments:

Post a Comment