Tuesday, October 7, 2014

Re: write to a separate file via an external filter

...
On Tue, Oct 7, 2014 at 4:35 PM, Tim Chase <vim@tim.thechases.com> wrote:
On 2014-10-07 15:58, David Fishburn wrote:
> I don't really want to open this file in a Vim buffer, I just want
> to write the contents of the file (currently open in Vim) through
> some external program and into a new filename.

It sounds like you're looking for

  :help :w_c

so you'd do

  :w !sort > output_vim_doesnt_load_in_a_buffer.txt


Thanks guys, knew it would be something simple and scriptable.

David 

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

Post a Comment