Using the OS X system clipboard with Vim

This is mostly a note to my future self who has by now forgotten how to get the system clipboard working with Vim. Maybe it'll help »