I have an area selected in Vim. How can I copy it into the OS X clipboard?
(The OS X clipboard can be written to via a pipe to /usr/bin/pbcopy)
/usr/bin/pbcopy
Visually select the text and type:
ggVG !tee >(pbcopy)
Which I find nicer than:
ggVG :w !pbcopy
Since it doesn't flash up a prompt: "Press ENTER or type command to continue"