Closed krnl0138 closed 5 years ago
I closed it because I tried to install st and it worked, so I thought 'ok, smth is wrong w/ alacritty', but then I found something strange. If i open 2 terminals -- st and alacritty by side and copy smth from alacritty nothing will work, but if I copy first from st and then try to copy from the alacritty's window in VIM -- it copied totally fine. If i quit the VIM in alacritty and reopen file -- I cannot copy again. It is very bizzare.
Cuz I know sway+vim+alacritty -- are not the best friends ever.
Why, they pretty much are, as long as you're talking about neovim, not gvim. Because neovim users wl-clipboard internally to do copying and pasting, and I haven't heard any such thing about gvim.
So if it doesn't use wl-clipboard, do you expect it to implement copying and pasting on Wayland some other way? (Directly using Wayland?)
And if it doesn't support copying and pasting on Wayland, why do you think this is a wl-clipboard bug? Are you able to paste into any other Wayland-native app after copying from gvim?
Let me rephrase that.
There are two ways that wl-clipboard could be involved here:
wl-paste
and it pastes the unexpected thing, so it could be a bug in wl-clipboard. But since gvim is unlikely to support copying under Wayland at all, I suspect that the problem is actually that vim fails to copy, not that wl-clipboard fails to paste. That's why I'm asking — are you able to paste the thing you've copied from vim into any Wayland-native app? If you cannot, then it's clearly a vim copying issue.Thanks a lot, now I understand the situation. Yes, neovim works like a charm!
So since everything seems to be working as expected, I'll close this issue :smile:
Hello, everything is fine, except i cannot paste when I copy text in VIM on Sway-Wayland.
wl-paste
andwl-paste -p
give me previous copyings. In VIM you can do"*y
and"+y
commands in order to copy to primary and to clipboard accordingly, but both registers do not accept the copied text.What did I do wrong? And where should I find the problem? Cuz I know sway+vim+alacritty -- are not the best friends ever.
gvim 8.1.1968-1 wl-clipboard-git r184.a60a0a4-1 alacritty 0.3.3-3 wlroots-git 0.7.0.r2.gbf90474b-1 wayland 1.17.0-1 sway-git r6051.c11c8a58-1