Tuesday, September 22, 2015

Re: How to send STDOUT to a vim session


On Tue, Sep 22, 2015 at 11:46 AM justrajdeep <justrajdeep@gmail.com> wrote:
Hi

I want to send the STDOUT/STDERRS to an existing vim session.

normally i can get the STDOUT like

    ls | gvim -

But i am not able to send the same thing to a remote vim session

    ls | gvim - | gvim --servername GVIM2 --remote-tab -

The above thing does not work. Can someone help me with the correct syntax please.

You can't pipe to a remote server. If you really want to do that, you should pipe to a temporary file, then open it:

ls > temp-file
gvim --servername GVIM2 --remote-tab temp-file

If you're using Linux, you can pipe to a FIFO:

mkfifo temp-pipe
gvim --servername GVIM2 --remote-tab temp-pipe
ls > temp-pipe
 


Thanks in advance :)

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

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