svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Option clipboard=unnamed ignored on Neovim #55

Closed gustavo-hms closed 9 years ago

gustavo-hms commented 9 years ago

I have both Vim and Neovim configured with “set clipboard=unnamed”. It works as expected for both Vim and Neovim: if I yank something on (Neo)Vim, it is placed in the * register; also, if I copy something on another program, again the * register is updated. When I paste something without specifying a register, the content of the * register is used.

Nevertheless, if I enable the Easyclip plugin on Neovim, the “clipboard=unnamed” option starts to be ignored completely. All unnamed operations start to use the " register, not the * one. Vim remains working though.

I'm not sure if this problem should be issued here or on Neovim repository. But the oddity is that it's only happening when Easyclip is enabled on Neovim.

svermeulen commented 9 years ago

Guess I'll have to finally give neovim a go to see what's going on there. I use "clipboard=unnamed" as well. Thanks for the report.

gustavo-hms commented 9 years ago

Great! Thanks If you need more info, don't hesitate to ask

lazywei commented 9 years ago

will it work with clipboard=unnamedplus?

gustavo-hms commented 9 years ago

No, it doesn't. Same behaviour as before.

jsborjesson commented 9 years ago

Does anyone have an idea about this? I miss easyclip in my setup!

svermeulen commented 9 years ago

I work primarily on windows so I can't debug this issue yet. clipboard=unnamed doesn't even work yet on windows in neovim so I am blocked (details here) If somebody else wants to take a look in the meantime, I accept pull requests :)

jsborjesson commented 9 years ago

Ah, okay. I'd love to fix it but I have a lot to learn about vim plugins just to get started. I might take a look if I have time someday - any clues to where in the code the problem might lie? On 8 Aug 2015 22:49, "Steve Vermeulen" notifications@github.com wrote:

I work primarily on windows so I can't debug this issue yet. clipboard=unnamed doesn't even work yet on windows in neovim so I am blocked (details here https://www.reddit.com/r/neovim/comments/3g94le/how_to_set_up_clipboard_provider_on_windows_for/) If somebody else wants to take a look in the meantime, I accept pull requests :)

— Reply to this email directly or view it on GitHub https://github.com/svermeulen/vim-easyclip/issues/55#issuecomment-129043662 .

simonweil commented 9 years ago

Can this issue be related to: neovim/neovim#3141?

jsborjesson commented 9 years ago

Could be, they might have made the setting backwards incompatible in some way, hopefully it will just start working if they fix that On 9 Aug 2015 10:32, "Simon Weil" notifications@github.com wrote:

Can this issue be related to: neovim/neovim#3141 https://github.com/neovim/neovim/pull/3141?

— Reply to this email directly or view it on GitHub https://github.com/svermeulen/vim-easyclip/issues/55#issuecomment-129140609 .

svermeulen commented 9 years ago

I took a brief look at this on a ubuntu virtualbox, and it looks like easyclip is doing things correctly with clipboard=unnamed. It seems very likely that it's related to neovim/neovim#3141

simonweil commented 9 years ago

neovim/neovim#3141 has been merged. Does this issue still exist with neovim head?

gustavo-hms commented 9 years ago

I’ve just updated my neovim installation and it seems to be working now. I thing this issue can be closed.

jsborjesson commented 9 years ago

I can confirm, awesome!