Vim — Copying highlighted text to the clipboard

11 Dec 2016

Visually highlight something and then, in command mode:

:w !pbcopy

I always forget this and have to search for the answer.