Vim clientserver

Brian McKee brian.mckee at gmail.com
Tue Jun 16 02:37:46 UTC 2009


On Mon, Jun 15, 2009 at 2:14 PM, Hal Burgiss <hal at burgiss.net> wrote:
> On Tue, Jun 16, 2009 at 01:26:58AM +0800, Tim Webster wrote:
>> What do you mean by client-server?
>
> http://www.vim.org/htmldoc/remote.html
>
>  "When compiled with the |+clientserver| option, Vim can act as a command
>  server.  It accepts messages from a client and executes them.  At the same
>  time, Vim can function as a client and send commands to a Vim server."
>
> Its really unclear to me how this works. The documentation I find is about the
> client side.
>
>
>> The best way to edit a file on a remote machine is
>> ssh -X user at hosts
>> gvim file
>> This will open the remote file as gvim locally displaced.
>>
>
> hal at Nexus:~$ gvim .vimrc
> E233: cannot open display
> Press ENTER or type command to continue
>
> Out of 15 or so servers I interact with, that is the only one with gvim. I know
> about gvim scp://server//path/file, but it is relatively slow.
Really?  It copies it to temp then edits it there I believe, so it
should only be slow when you first open it... It works well enough for
me most of the time - the other times I mount the directory via SMB
and edit it directly :-)

You need gvim?  vim isn't good enough?

Brian

PS - if you do find those docs let us know - I've always wondered
about that kind of setup.
PPS - the vim user list is very friendly - haven't been there in a
while but people were always bending over backwards to help over there

-- 
All you need to know about Ubuntu 9.04 Jaunty -> gconftool -s --type
bool /apps/update-notifier/auto_launch false




More information about the ubuntu-users mailing list