• ne0phyte@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    2 days 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.