Instantly share code, notes, and snippets.
Try:
:set clipboard=unnamed
or
:set clipboard=unnamedplus
Reference stackoverflow post