After I upgraded to OSX Yosemite vim started behaving strangely. For instance
set clipboard=unnamed was no longer working. This is because yosemite came with it's own version of vim compiled without clipboard support.
To fix it, uninstall the system vim:
sudo rm /usr/bin/vim
Then reinstall vim with homebrew
brew install vim