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
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.
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/da889d0c-f29e-416b-8153-f410df6a4132n%40googlegroups.com.
No comments:
Post a Comment