Run the following in your shell:
brew install macvim --override-system-vim
brew upgrade tmux
brew install reattach-to-user-namespace
echo 'set-option -g default-command "reattach-to-user-namespace -l bash"' >> ~/.tmux.conf
pbcopy
should work within tmux once you've done that.
You can test it by trying echo "hi" | pbcopy
and then trying to paste.
In vim, you should now be able to copy to the system clipboard by using the + buffer.
For example: do a visual selection of some text and type "+y
to yank the selection into the osx paste buffer.
If you want any ole yank in Vim to copy to the system clipboard, add set clipboard=unnamed
to your .vimrc