vim-poweryank icon indicating copy to clipboard operation
vim-poweryank copied to clipboard

can it be used to replace vim's internal cut and yank?

Open amosbird opened this issue 7 years ago • 4 comments

i'd like to make all y... , d... and all other clipboard related commands work through ssh. can it be achieved?

amosbird avatar Aug 30 '17 00:08 amosbird

That's good question. I also want such feature.

But, there are some problem like we cannot send arbitrarily large text to terminal through OSC52 (there is a character limit).

Maybe we can create mappings which just give up using OCS52 in such cases (with some messages). I'll try to create it.

haya14busa avatar Aug 30 '17 01:08 haya14busa

hello, any progress on this :) ? Can we have a wip workaround in the mean time? regards.

amosbird avatar Dec 09 '17 03:12 amosbird

I'm also interested in having at least "* and "+ operate with osc52.

abouteiller avatar Mar 10 '18 10:03 abouteiller

I've added this autocmd to my ~/.vimrc:

augroup ssh_clipboard
  au!
  au TextYankPost * call poweryank#opfunc_osc52(visualmode())
augroup END

So whenever I yank with y..., or d..., the plugin gets executed and the buffer is copied back over ssh.

quic-mathbern avatar May 23 '24 11:05 quic-mathbern