Tuesday, November 26, 2013

Re: Real time redirection of command output to window/buffer

在 2008年3月12日星期三UTC+8上午4时47分05秒,EricT写道:
> Does Vim have a mechanism for piping the output of a long running
> process to a buffer in real time?

I have same thought to realize this effect.
because I want look output of my program and keep ongoing to modify my code.

first I search sth like simple runit script.
its function only conclude just run the script which was currently edit.
But, I have to leave vim and check output and return to vim.
So, I write a simple vim script, run the script and read the output to a temp buffer.
and I occur the same question, and I cannot solve it.
so I make a TRADE OFF.

using TEE, directly check output,then read it to buffer.
you can check this
https://github.com/liuyang1/dotfiles/blob/master/.vim/key.vim

--
--
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/groups/opt_out.

No comments: