19
9
I would like to set Y and P to copy and paste directly to the system clipboard instead of vim buffer.
I don't want any additional commands. Just the normal ones, but they should copy to and paste from the system clipboard and bypass the vim buffer.
How can I achieve this?
I'm running vim on Ubuntu 10.10.
I had to use
– cledoux – 2015-03-03T20:36:55.790set clipboard+=unnamedplus
as per http://vim.wikia.com/wiki/Accessing_the_system_clipboard. The*
register doesn't copy to my clipboard when I'm running vim from a terminal (which is always).For Arch (around 2016-04), I did:
set clipboard=unnamedplus
– hodgkin-huxley – 2016-04-22T14:46:32.693