vim-config icon indicating copy to clipboard operation
vim-config copied to clipboard

copy on select in vim

Open sundar-h opened this issue 4 years ago • 2 comments

I turn on the "copy to pasteboard on selection" option, but it does not take effect in nvim while use this repo as my config. While nvim -u specify an empty init.vim file, it take effect again. I've tried those bellow:

  1. uncomment all clipboard settings
  2. set clipboard=unnamedplus i local.vim
  3. set clipboard=unnamedplus in local.vim but it has no effect too.

What should I do about it?

sundar-h avatar Jan 06 '21 10:01 sundar-h

Hi @sundar-h, can you tell me what's your output for :echo &clipboard when you start with nvim -u NONE?

In line no. 49 in config/general.vim -- try changing the set clipboard& clipboard^=unnamed,unnamedplus line to set clipboard& clipboard+=unnamedplus .. let me know.

btw, what's your OS?

rafi avatar Jan 07 '21 07:01 rafi

Try set clipboard=unnamed @sundar-h

rafi avatar Sep 01 '21 16:09 rafi