VIM remote and Wayland

21 views
Skip to first unread message

Erik Slagter

unread,
Nov 15, 2025, 9:49:29 AM (7 days ago) Nov 15
to vim_use
Hi there,

For some time now, I fear from the moment I switched to Wayland, my vim (either vim or gvim) do not create a "server" anymore. So --remote-tab doesn't work. Vim --serverlist returns no servers when I have a running gvim instance. This has been working for absolutely years!

gvim --remote-tab says "E247: No registered server named "GVIM": Send failed. Trying to execute locally" as a result, always.

gaia $ vim --serverlist
gaia $ echo $DISPLAY
:0
gaia $ xhost
access control disabled, clients can connect from any host

Anyone, please? 

Christian Brabandt

unread,
Nov 15, 2025, 12:57:04 PM (7 days ago) Nov 15
to vim...@googlegroups.com
Recent Vims have support for using a socketserver. That should make it
work under Wayland I think.


Thanks,
Christian
--
You first parents of the human race... who ruined yourself for an apple,
what might you have done for a truffled turkey?
-- Brillat-savarin, "Physiologie du Gout"

Erik Slagter

unread,
Nov 16, 2025, 3:51:26 AM (6 days ago) Nov 16
to vim_use

Op zaterdag 15 november 2025 om 18:57:04 UTC+1 schreef Christian Brabandt:
On Sa, 15 Nov 2025, Erik Slagter wrote:
> For some time now, I fear from the moment I switched to Wayland, my vim (either
> vim or gvim) do not create a "server" anymore. So --remote-tab doesn't work.
> Vim --serverlist returns no servers when I have a running gvim instance. This
> has been working for absolutely years!
>
> gvim --remote-tab says "E247: No registered server named "GVIM": Send failed.
> Trying to execute locally" as a result, always.
>
> gaia $ vim --serverlist
> gaia $ echo $DISPLAY
> :0
> gaia $ xhost
> access control disabled, clients can connect from any host
>
> Anyone, please? 

Recent Vims have support for using a socketserver. That should make it
work under Wayland I think.

So you're saying this is a known issue? I couldn't find anything on this when googling. 
 I guess I have a "recent" vim, so I'll will look into it, thanks!

> It helps if you tell us what kind of Vim you are using, so we can offer better help. You still did not
> mention 🙂 I am not sure the socketserver feature will help, but it sounds like it should, so please
> read up on this feature. See :h socketserver-clientserver

Not necessary, I already have it working, thanks! So, indeed, vim does not play nicely with Wayland regarding the "server" part. My vim version (from Fedora) is compiled with both X11 and Wayland support, which is nice, but for "server" use, it still chooses X11, which doesn't work (apparently).

This is the approach that works:

gaia erik: $ type vi
vi is an alias for /usr/bin/gvim --clientserver socket -f --remote-tab-silent

It would be nice if it could be a setting in the .vimrc file, but I don't think there is one.
Reply all
Reply to author
Forward
0 new messages