ojroques / vim-oscyank

A Vim plugin to copy text through SSH with OSC52
BSD 2-Clause "Simplified" License
630 stars 39 forks source link

Unknown function: chansend #44

Closed 3N4N closed 1 year ago

3N4N commented 1 year ago

https://github.com/ojroques/vim-oscyank/blob/0e6543a2a3ff009382cb04f30c7ccbe421a6dc72/plugin/oscyank.vim#L118

This is available only in neovim. It should have an alt for Vim as well.

ojroques commented 1 year ago

Why your system is using the fallback? What is your OS?

3N4N commented 1 year ago

Windows.

ojroques commented 1 year ago

I've added a new fallback. I'm not using Windows though, let me know if it works that way.

3N4N commented 1 year ago

Yes, it does. I came up with the same solution (when I say "came up," I mean I stole it from hterm). But it has an issue: the screen flashes every time you redraw. That's not idea.

What I ended up doing is using win32 clipboard implementation of Vim when on Windows. Cause it's guaranteed to work. And if I ssh into a Linux machine, Vim will use this plugin so it doesn't have rely on X11.

ojroques commented 1 year ago

Nice !