Use system clipboard for all yanks/deletions/etc inside vim

1 Point

Sævar Berg Sævar Berg

5 years ago

Normally, one uses "+y to yank something to the system clipboard and then "+p to paste from it. Putting this in your .vimrc lets you simply use y and p instead. If you like having separate clipboards, this is not for you, but normally, one is used to being able to "copy from somewhere" and "paste it somewhere" without dealing with multiple clipboards.

set clipboard=unnamedplus