I've been looking for at way to copy from vim to my system clipboard. I've read through the question "How to copy to clipboard in vim" and from that I can see that i'll have to compile Vim with +clipboard
.
This is not an option for me, when working on a remote server, so for now, I'll have to switch to the mouse, to make the selection to make my system regard the selection a selection. Simply doing a visual
select through Vim does not work.
So my question is this;
Is it possible to make my system see the selection made by Vim (e.g. using viw
) as something that can be copied to the clipboard using a cmd-c
?
I'm using Mac OS High Sierra, running iTerm 2.