this is nice. thanks!
regards
ping
On 06/28/2012 01:44 PM, Charles Campbell wrote:
ping wrote:
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?
Perhaps RunView will be of help, although I don't have asciidoc
available to test the specific case.
RunView: http://www.drchip.org/astronaut/vim/index.html#RUNVIEW
let g:runview_filtcmd= "asciidoc -a toc -a toclevels=3 -"
Then
:[range]RunView
Regards,
Chip Campbell
--
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