Neovim on OS X

December 19, 2020


Recently I have switched from vim to neovim, just because it is faster, supports asynchronous plugins, and stores config in .config so I can have all my configs in the same place.

This is a base config for neovim on OS X using vim-plug plugin manager.

neovim latest installation

brew install cmake
brew install luarocks
brew install --HEAD luajit 
brew install --HEAD neovim

vim-plug installation

curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \                                       

vim-plug usage

Update .config/nvim/init.vim

call plug#begin('~/.config/nvim/plugged')
"Define your plugins here
Plug 'tpope/vim-surround'
call plug#end()

Then just call the command:


Handling python path error

In case of python path error: Python cannot be opened because of a problem

Please add the following to the beginning of the file: .config/nvim/init.vim

let g:python3_host_prog='/usr/bin/python'
let g:python_host_prog='/usr/bin/python2'

Built with love to Python logo React logo Gatsby logo ยท Piotr Rogulski