Tuesday, July 8, 2014

redirect output of shell script on to same window

hi,

i have a vim function which can be used to execute a shell cmd (for example 'ls')
from within vim, i want to redirect the output to a same window always, for
example, i will have two windows opened A | B. A will be my script and B will be
my output window, when i execute A, if B is not opened, open B and display the
output, if B is already there, then clear the existing contents of B and display
the new output. I hope i'm clear on the requirement, i know i have to use the commands like 'rightbot new', 'vertical new', etc, i tried all combinations but
nothing seems to be working, your help is much appreciated.

thanks
sinbad

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