vim-textobj-quote icon indicating copy to clipboard operation
vim-textobj-quote copied to clipboard

textobj-quote doesn't work with certain easyclip settings

Open ltratt opened this issue 8 years ago • 2 comments

Not that this is exactly textobj-quote's fault, but if easyclip is configured as follows (which is what the easyclip documentation reccomends):

set clipboard=unnamed

then ReplaceWithCurly and friends don't make any change to the text because pasting no longer uses the " register. It seems that using set clipboard=unnamedplus fixes this problem, although I haven't fully worked out if it has other knock-on effects.

I guess textobj-quote could check for easyclip's existence and alter the paste register it uses; or maybe even documenting the issue might be enough?

ltratt avatar May 01 '17 14:05 ltratt

Sorry for the delay.

I'll try to reproduce this in the next week or two. Ideally this plugin can detect when the clipboard setting has changed, and restore it afterwards. Thanks.

reedes avatar Sep 10 '17 00:09 reedes

Detecting the clipboard setting, changing it to something else, then reverting is a terrible idea these days. Maybe it wasn't in 2017, but Vim and Neovim handle this differently, and many platforms simply don't support the same clipboard options. I think we need a different mechanism entirely. I'm guessing there is a way to hook into the register functions directly such that we can use a private one that is unaffected by user settings, other plugins, or platform support.

alerque avatar Jun 01 '20 07:06 alerque