search

Home  >  Q&A  >  body text

When interacting with the system clipboard in Vim, besides using the ""+" register, is there any better (elegant) solution?

In fact, I am not very afraid of trouble, but maybe there are good ideas (I don’t know)?

黄舟黄舟2774 days ago587

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 16:39:29

    Add the following settings in the configuration file:

    set clipboard=unnamed

    The default register is the *register that interacts with the system.

    If the version is 7.3.74 or later, you can also try setting the clipboard=unnamedplus,把+ register as the default register.

    reply
    0
  • Cancelreply