home ~ socials ~ projects ~ rss

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

August 2021

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

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

end of line
Share link:
https://www.alanwsmith.com/en/20/eo/jq/bb/?copy-and-paste-between-neovim-vim-and-other-apps-on-mac-os