6

I am using neovim 0.2.3 dev and xfce4-clipman clipboard manager. I want to copy from the neovim into registers and put it into clipman register. How can I do that?

1 Answer 1

11

I got around the problem I posted. I am leaving the solution if and when anyone gets stuck in similar situations.

Put this snippet into your init.nvim. Then install xclip. For easy manipulation you can also use some gui clipboard manager like xfce4-clipman. But xclip is necessary for the following snippet.

let g:clipboard = {
  \   'name': 'xclip-xfce4-clipman',
  \   'copy': {
  \      '+': 'xclip -selection clipboard',
  \      '*': 'xclip -selection clipboard',
  \    },
  \   'paste': {
  \      '+': 'xclip -selection clipboard -o',
  \      '*': 'xclip -selection clipboard -o',
  \   },
  \   'cache_enabled': 1,
  \ }
2
  • Just adding xclip, without the snippet, was enough for me with neovim 0.8.3 on Ubuntu 22.04 Feb 13 at 14:09
  • 1
    Yes, because nvim core has included the config since then.
    – 3N4N
    Feb 14 at 7:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.