you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 9 months ago

I've used this neovim keybind for years:

vim.keymap.set({'n', 'x'}, 'gy', '"+y') -- copy
vim.keymap.set({'n', 'x'}, 'gp', '"+p') -- paste 

I was able to copy/paste between nvim and other applications on sway, Hyprland, Niri and KDE on Wayland.

The global clipboard register + should also work in modern regular vim afaik.

  • source
  • parent