0

How do I set the vimrc in Vim to make the default register the clipboard? I basically want to change all keys that interact with the default register.

1 Answer 1

2

You're looking for

:set clipboard^=unnamedplus

All commands that take a register will now default to the clipboard, as if you had prepended "+.

3
  • I run that command in gvim it tells me E474: Invalid arguemnt: clipboard^=unnamedplus
    – Christian
    Nov 27, 2013 at 14:15
  • You need at least Vim 7.3.151. Nov 27, 2013 at 14:18
  • Now it runs. It works for pasting but it doesn't work for yanking.
    – Christian
    Nov 27, 2013 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .