I like to use vim to edit other (non-programming languages) stuff. So I paste the content into vim and make the changes.
How can I copy all of the text back into the primary clipboard for pasting?
Note that I use iTerm2 and the ability to use * isn't there as it is with the basic osx terminal app.
I don't want to copy to a vim internal register (such as the y
yank command), I want to copy to the system clipboard.
Also, I want the contents of the whole file, including the content which is off-screen?
The alt-left-click-drag with mouse doesn't work.
:%w !pbcopy
/bin/bash: pbcopy: command not found