When interacting with the system clipboard in Vim, besides using the ""+" register, is there any better (elegant) solution?
黄舟
黄舟 2017-05-16 16:37:29
0
1
591

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
習慣沉默

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template