Monday, September 22, 2014

Re: Writing to an external file

On Mon, Sep 22, 2014 at 6:26 PM, Gary Johnson <garyjohn@spocom.com> wrote:

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
 
I knew about :! and system(), but not about the other two. writefile() looks like it might work. Many thanks!

Ben

--
b

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