How to fix clipboard with iTerm and Vim/NeoVim on Mac
Add this to your Vim configuration file (.vimrc
)
set clipboard=unnamed
This makes yanking work with default Terminal, but to make it work with iTerm you need to check Allow clipboard access to terminal apps in iTerm preferences.