My vim configuration.
- Download and install MacVim from https://github.com/macvim-dev/macvim
- Create command line launcher
$ ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
- Add
/usr/local/bin
in your $PATH by adding the following to your shell profile (.zshrc
,.bash_profile
)
$ export PATH="/usr/local/bin:${PATH}"
$ git clone git@github.com:xliiauo/.vim.git
$ ln -s .vim/vimrc .vimrc
Install plugins after openning vim for the first time.
:PlugInstall
[coc.nvim] "node" is not executable, checkout https://nodejs.org/en/download/, Press ENTER or type command to continue.
Install node.js will solve the issue, you can do that through homebrew.
$ brew install node
Error detected while processing //. for ""..script /Users/*/.vim/plugged/ultisnips/autoload/UltiSnips.vim, E370: Could not load library /usr/local/Frameworks/Python.framework/Versions/3.8/Python
Python3 support is missing for the vim you are using. Check if you have Python3 support with the following, you should see +python3
in the list:
$ vim --version
If Python3 support is not enabled, the easiest way to add is to reinstall vim with homebrew with the following:
$ brew install vim
It is also useful to make sure that you are using the homebrew vim instead of system vim:
$ which vim
/usr/local/bin/vim
Make sure to change git vim to the homebrew vim as well:
$ git config --global core.editor "/usr/local/bin/vim"
Additionally, sometimes homebrew installs a newer version of python, but vim is compiled with a different version (for example when you download the compiled MacVim binary directly from its releases) will complaining for a speific version missing like Python 3.8
. You can install that version to solve the issue.
$ brew install python@3.8
$ brew unlink python@3.9
$ brew link --force python@3.8