Copy to clipboard

Back

In MacOS you can copy the contents of the vim buffor to clipboard by redirecting :w to pbcopy

:w !pbcopy