Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Copy And Paste Between Neovim-Vim And Other Apps On Mac OS

Add this to your `~/.vimrc` or `~/.config/nvim/init.vim` to copy and paste to and from vim/neovim and other apps:

Code

set clipboard=unnamed

When that's in place, your `y...`, `d...`, and `p` commands work with other apps. (e.g. `yy` will copy the current line which you can paste in another app. and, you can copy something from another app and use `p` to paste it into vim/neovim)

vai: https://vim.fandom.com/wiki/Mac_OS_X_clipboard_sharing