You are not logged in.
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
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
vim or gvim?
In case of not-gvim, what terminal emulator?
How exactly do you so get the line into the X11 clipboard?
Online
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.
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
Same issue w/
kitty -o linux_display_server=x11
?
Online
Same issue w/
kitty -o linux_display_server=x11
?
Nop it works fine with your code.
Offline
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
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
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
Bumping this thread to say that now everything works on wayland as it should without any messing around.
Offline