Monday, September 22, 2014

Re: Writing to an external file

On 2014-09-22, Benjamin Klein wrote:
> That's not possible from a VimL script, is it? If it is: how?

There are several ways to do that. Some may be better than others,
depending on what you're trying to do.

:help :w_a
:help writefile()
:help system()
:help :!

In the last case, the command could be something like this:

!echo hello, world > hello.txt

Regards,
Gary

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: