Wednesday, July 25, 2012

Re: vim does not start with given servername

On 25/07/12 15:29, Asis Hallab wrote:
> Dear Vimers,
>
>
> I have vim 7.2 installed on a Ubuntu 10.04
>
> If I start Vim, not gVim (!), in a terminal with
> vim --servername VIM
>
> and subsequently issue the command
> :echo v:servername
>
> I get a blank response.
>
> The same in gvim returns 'VIM'
>
> Does anyone know, what I am doing wrong?
>
> This is the output of
> vim --version
> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 16 2010 13:27:36)
> Included patches: 1-330
> Compiled by buildd@
> Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
[...]

Works for me in Huge vim 7.3.615 with GTK2-GNOME GUI (on openSUSE 12.1),
even when run in Console mode, but only in an xterm or konsole (emulated
in an X11 virtual desktop), not in the Linux console (/dev/tty1 to
/dev/tty6 and accessed by Ctrl-Alt-F1 to Ctrl-Alt-F6), because the
latter have no access to the X server and therefore cannot send or
receive the X messages which are the basis for Vim's client-server
feature on systems other than MS-Windows.

See :help x11-clientserver


Best regards,
Tony.
--
"The difference between a misfortune and a calamity? If Gladstone fell
into the Thames, it would be a misfortune. But if someone dragged him
out again, it would be a calamity."
-- Benjamin Disraeli

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

No comments: