Thursday, June 28, 2012

vim: use external program, but direct output to a new vsplitted buffer

experts:
this may be easy for experts but I'm still in beginners level...

a common usage of the external program is to process texts in curr
buffer and put it back(to replace) the texts like a pipeline - which is
great in most circumstances.

but sometime I don't want to modify my text but rather redirect the
output to another buffer -- pretty much like what TOhtml does.

particularly I want to visual select a range of text and call the
ext-prog, then got the result in a new splitted buffer.

eg. I want to visual select texts and then:

:'<,'>!asciidoc -a toc -a toclevels=3 -

to convert the texts into html on stdout.

how to achieve that?

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