Monday, December 14, 2009

Re: Vim client-server communication

On Mon, Dec 14, 2009 at 11:48:54PM EST, Marc Weber wrote:

> > Would a compile task be an example, and the call back opens a tab
> > with a list of errors for instance.? Or is it just a message
> > displayed at the bottom of the screen to inform the user that the
> > task has completed, and a possible completion code?

> You usually prefer quickfix or errorlists over tabs. But yes, that's
> what I'm doing all the day..

Thanks, and apologies for bugging you about this.

I came across this feature while reading the Vim help, and it looked
promising, so I read on.. And all the time it struck me as a little odd,
because there was so little info and no examples whatsoever, which in
the case of Vim is untypical. The examples that are provided are really
just illustrations of the syntax, rather than a description of
circumstances where the client-server feature would provide useful
real-life solutions.

So I thought, let's google a bit, and much to my surprise, practically
nothing came up.

And then there was this thread on vim_use about the netrw plugin a
couple of days ago, and since it allows you to access files directly, I
think, over a network, I started wondering about the relative roles of
netrw and the client-server feature.

I'm able to open the quickfix list by doing a:

$ bash_command | vim --servername VIM +:cope -

.. for instance, but it's obviously empty.

Does that mean I would need to run vim as the client and use the
built-in functions to forward the buffer to the server for editing, in
order to use the feature for anything beyond entertaining my friends?

In any event, thanks much for your comments. I'll study your script when
time allows, and I'm sure things will become a lot clearer.

CJ

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: