What does HackerNews think of vim-oscyank?

A Vim plugin to copy text through SSH with OSC52

Language: Vim Script

Yes OSC 52 is very handy for vim over SSH: instead of X11 forwarding - you can just yank text from remote vim into the local clipboard using OSC 52 [1].

Overall it's much quicker - as yanking in vim with X11 forwarding and '+clipboard' sometimes had a delay.

(ps: I think OSC 52 is implemented in xterm and URXVT, but not yet in gnome-terminal)

[1]: https://github.com/ojroques/vim-oscyank

> Cut and paste

If your terminal supports it (iterm, kitty, later versions of gnome-terminal and others) this osc52 plugin is really sweet. It even works over ssh.

https://github.com/ojroques/vim-oscyank/

I use this [0] vim plugin to copy and it works great. For the CLI in ssh I use this app [1]. Both leverage OSC52 escape codes which are widely supported by terminals nowadays.

Need to figure out an equally simple solution for CLI paste support though.

[0] https://github.com/ojroques/vim-oscyank

[1] https://github.com/theimpostor/osc52

Hey, that's quite interesting. Just tested it here with alacritty and was able to get data from a remote server into the clipboard. The downside here is that it did not seem to work immediately from inside tmux, but a quick search shows that there are ways to make it work. Also found a vim-plugin[1] that would allow it to work from inside vim as well. If I can also find a way to pipe random commands to it, it might indeed work better than clipper for my use cases. Finally, there is the added benefit of removing the need to forward the local UNIX socket over SSH, which I find to be a bit flaky. Thanks for sharing it!

[1] https://github.com/ojroques/vim-oscyank