While using vim inside a tmux session I cannot yank or paste to the unnamed register. Going to a named register works fine, but unnamed never works.
Error is:
<
To add a couple notes from my experience on OSX to the accepted answer:
set clipboard=unnamed and not set clipboard=unnamedplus$ killall tmux or $ tmux kill-session -a). Reloading the tmux configuration files showed that default-command was set but did not give vim access to the system clipboard.