On 24 May 2011 12:15, Meikel Brandmeyer wrote:
>
> what the vim-remote project basically does, is to extract the client/server
> functionality into a library so that you can have different programs which
> are not Vim to interact with. So I can for example have a clojure backend
> server which understands this protocol. The vim side would then send some
> command via ':call remote_expr("My Clojure server", "(doc reduce)")' to eg.
> retrieve the documentation for the reduce function. Note how the expression
> is actually a *Clojure* expression. The clojure server can then a reply
> again with maybe '(remote-expr "the vim client" (format
> "ShowDocumentation('%s')" (-> (resolve reduce) meta :doc))'. Note how now
> the remote expression is again a vim expression, now. (Of course the actual
> interaction would be more complicated; just to show the idea...)
>
> With vim-remote this is possible for X11 and Windows applications which are,
> important fact, not Vim. For MacVim I suppose I have to get a suitable
> NSConnection object AFAICT from my current reverse-engineering tries.
>
> (The "call vim with approriate flags" doesn't help, because the receiving
> part must again be Vim, which is not what I want.)
>
> Unfortunately Vim does not expose this interface via sockets. *geez*Uhm. So vim-remote has nothing to do with the remote* calls that are built into Vim? That is extremely confusing. OK. So, please ignore me if I'm talking nonsense, but it seems to me that you'll need to set up some sort of socket inside Vim to connect to a vim-remote server (or set up a server inside Vim for vim-remote to connect to, which amounts to essentially the same thing). Something like this is already being done by the client/server code and also the Netbeans code. The relevant code is inside gui_macvim.m and MMBackend.m. Try taking a look at that and see if you can mimic it. I think that is the best help I can provide. Good luck! Björn -- You received this message from the "vim_mac" 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
