Confirm Vim Version
First confirm the version of your vim is support +clipboard with
vim --version
If not install the recent version of vim.
brew install vim
Setup .vimrc
Add this line to your ~/.vimrc.
setclipboard=unnamed
Try
In the vim, with yank command y
, the selection will be copied to the mac clipboard.