I found a solution to my problem vim.wikia.com: Accessing the system clipboard. If you add the following to your .vimrc file
set clipboard=unnamedplus
for linux or
set clipboard=unnamed
for Windows.
Everything you yank in vim will go to the unnamed register, and vice versa.