-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clipboard: error -2 #28
Comments
Any idea what is on your system clipboard when this happens? |
In my neovim, set clipboard=unnamed,unnamedplus I have installed xsel and xclip. It seems that https://github.com/junegunn/vim-peekaboo also sometimes trigger clipboard: error -2. So I believe it is not the bug of vim-yoink. |
What I mean though is what is the actual text on your clipboard when this bug occurs? I'm wondering if maybe that is related here, since you say that it only occurs sometimes |
I also met this error in other vim-plugin. This is the result of
|
The same error happens to me on Manjaro kernel v5.13.12-1-MANJARO, using Neovim v0.5.0 Release build. For me, it only happens on startup so I am suspecting if there is anything initialized for the X11 clipboard broke it. It is also worth noting that I also have a laptop that runs Mint does not have this issue so maybe its clipboard manager does a good job? Anyway, to temporarily solve it for my setup with i3, I added an exec --no-startup-id "xclip -sel clip < /dev/null" For DE users, I can't think of any other solutions other than making a short shell script and set it on autostart. #!/bin/sh
# clean clipboard with null
xclip -sel clip < /dev/null |
I'm having this issue with only neovim after doing some larger and overdue Manjaro dist-upgrade :/ The key-factors for this seem to be:
I can reliably reproduce it with these steps:
... and this error if pasting with
Specifically, IF I copy into the OS clipboard via A couple of additional things, worth mentioning:
|
What is the neovim clipboard provider that is being used? I think it should be listed with |
Mine is |
So I was able to reproduce this on macos by explicitly setting |
Sometimes I start my neovim, this error occurs:
The error sometimes occur, So I have not found any regular pattern, reason or any method to reproduce it. I have to disable this autocmd to avoid it.
I use neovim 0.5.0 on linux 5.13.13.
Any advice which can help me find the reason is thankful.
The text was updated successfully, but these errors were encountered: