-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
Hi and thanks a lot for Vim!
Vim 8.1 does not support yanking and pasting to the system clipboard when run on Wayland (using Sway, for example).
There are workarounds like adding this to .vimrc:
xnoremap "+y y:call system("wl-copy", @")<cr>
nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
This requires wl-clipboard to be installed.
Are there any plans to have clipboard support built into Vim?
Reactions are currently unavailable