merlin2011 merlin2011 - 3 months ago 15
Linux Question

Is it possible to change the default paste register in Linux?

I am trying to make it so that all normal yank and put commands will use the register

+
in addition to, or instead of the unnamed register.

I have already looked at this question but the solution presented there does not work on Linux. I have also looked at
:help x11-selection
and
:help quoteplus
, but neither contains the answer.

How can I make all
y
commands to behave as if they are prepended by
"+
?

Answer

You would use set clipboard^=unnamedplus for the + version of unnamed.

Take a look at :help clipboard-unnamedplus