You are not logged in.

#1 2024-03-17 21:12:39

xyrgug
Member
Registered: 2023-12-15
Posts: 32

[SOLVED] KDE 6 wayland broke VIM's clipboard

After switching to wayland the VIM's clipboard broke.
There's nothing on the wiki.
Some have advised installing this package:
https://archlinux.org/packages/extra/x8 … clipboard/
Nothing.

Some have advised installing this addon but it doesn't seem like a good idea to me.
https://github.com/jasonccox/vim-waylan … ree/master

Is there an easy way to write something in .vimrc to make it work?

Last edited by xyrgug (2024-04-29 11:58:21)

Offline

#2 2024-03-17 21:34:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

Cannot replicate.   Plasma 6 on Wayland.  Just yanked a line from vim and it appeared in the clipboard.   Selected another line from clipboard history, did a paste in vim and the new line was in the paste buffer.

What are you seeing that causes you to make this assertion?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2024-03-17 21:40:54

seth
Member
Registered: 2012-09-03
Posts: 52,170

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

vim or gvim?
In case of not-gvim, what terminal emulator?
How exactly do you so get the line into the X11 clipboard?

Online

#4 2024-03-17 22:42:56

xyrgug
Member
Registered: 2023-12-15
Posts: 32

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

ewaller wrote:

Cannot replicate.   Plasma 6 on Wayland.  Just yanked a line from vim and it appeared in the clipboard.   Selected another line from clipboard history, did a paste in vim and the new line was in the paste buffer.

What are you seeing that causes you to make this assertion?

Unfortunately that's not the case with me. What I yank in VIM it remains there. Copy paste works only inside VIM, but it is not transferred to the system. This is very easy to check because when I open GVIM everything works as it should.

seth wrote:

vim or gvim?
In case of not-gvim, what terminal emulator?
How exactly do you so get the line into the X11 clipboard?

vim. In gvim it works fine.
Terminal emulator is kitty. But it doesn't work in konsole too.

To get the line, I have this lines in my .vimrc

set clipboard^=unnamed
set clipboard^=unnamedplus

Last edited by xyrgug (2024-03-17 22:49:45)

Offline

#5 2024-03-17 22:48:16

seth
Member
Registered: 2012-09-03
Posts: 52,170

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

Same issue w/

kitty -o linux_display_server=x11

?

Online

#6 2024-03-17 22:53:48

xyrgug
Member
Registered: 2023-12-15
Posts: 32

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

seth wrote:

Same issue w/

kitty -o linux_display_server=x11

?

Nop it works fine with your code.

Offline

#7 2024-03-17 22:59:40

seth
Member
Registered: 2012-09-03
Posts: 52,170

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

https://bbs.archlinux.org/viewtopic.php?id=293938 for some context, but this has probably nothing to do w/ the GL/trnasparency support but that the clipboard feature exclusively does X11 at this point, https://wiki.archlinux.org/title/Vim#Clipboard

You've likely have to apply sth. like https://unix.stackexchange.com/question … -clipboard and use some wayland clipboard tool instead of xsel to have it work with a wayland TE

Online

#8 2024-03-17 23:29:22

xyrgug
Member
Registered: 2023-12-15
Posts: 32

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

seth wrote:

https://bbs.archlinux.org/viewtopic.php?id=293938 for some context, but this has probably nothing to do w/ the GL/trnasparency support but that the clipboard feature exclusively does X11 at this point, https://wiki.archlinux.org/title/Vim#Clipboard

You've likely have to apply sth. like https://unix.stackexchange.com/question … -clipboard and use some wayland clipboard tool instead of xsel to have it work with a wayland TE

Okay. I mean, all that remains is to hope that they fix it one day.

At least

kitty -o linux_display_server=x11

works for me. Thank you.

Offline

#9 2024-03-17 23:42:29

seth
Member
Registered: 2012-09-03
Posts: 52,170

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

https://github.com/vim/vim/issues/5157# … 1916375710 but that looks like gvim only.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#10 2024-04-29 11:58:09

xyrgug
Member
Registered: 2023-12-15
Posts: 32

Re: [SOLVED] KDE 6 wayland broke VIM's clipboard

Bumping this thread to say that now everything works on wayland as it should without any messing around.

Offline

Board footer

Powered by FluxBB