kana / vim-fakeclip

Vim plugin: Provide pseudo "clipboard" registers
http://www.vim.org/scripts/script.php?script_id=2098
180 stars 37 forks source link

Add support for wl-clipboard for Wayland #32

Closed kevinoid closed 4 years ago

kevinoid commented 4 years ago

Since Vim does not support Wayland natively (see vim/vim#5157) and at least one popular Wayland compositor (Sway) doesn't synchronize the XWayland clipboard without a focused window (see swaywm/sway#5352), a plugin like fakeclip could be a very useful way to interact with the Wayland clipboard.

This PR adds support for the Wayland clipboard using wl-copy and wl-paste from wl-clipboard, enabled based on the presence of $WAYLAND_DISPLAY.

Thanks for considering, Kevin

kana commented 4 years ago

Thank you for the pull request. I'll update the document later.

kevinoid commented 4 years ago

My pleasure. Thank you for reviewing and merging it.