My vim setting
-
Create folder
.vim
at$HOME
mkdir -p ~/.vim
-
Clone this repo into folder
.vim
-
Install packages by run script
install.sh
in this repo
https://github.com/Shougo/deoplete.nvim
pip|pip3 packages:
- pip3 install msgpack
- pip3 install --user pynvim
- pip3 install --user --upgrade pynvim
Identify which Python version my VIM was using through this command inside VIM:
:pythonx import sys; print(sys.path)
Example:
['/Users/username/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python311.zip', '/Users/username/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11', '/Users/username/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload', '/Users/username/homebrew/Cellar/python@3.11/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages', '_vim_path_']
Then the current using python is python@3.11 managed by homebrew
. Then we can try
pip3.11 install pynvim