My current vim config, up to date as of 12/24/2020.
To be used with neovim, running on WSL 2
-
Clone repository
-
Create the following symbolic links (for Vim):
ln -s [REPO]/.vimrc ~/.vimrc
ln -s [REPO]/.vim ~/vim
- In-order to get it to work with neovim, edit
~/.config/nvim/init.vim
to contain:
set runtimepath+=~/.vim,~/.vim/after
set packpath+=~/.vim
source ~/.vimrc
This will effectively make you have one vimrc. In-order to keep regular vim functional, you might need to add checks into your .vimrc
-
Update your python paths. Edit the third line in
[REPO]/.vimrc
to point to your respective python path. -
Open neovim, run ex-command:
:PlugInstall
WSL 2 changes how clipboard works. Albeit not directly related to the VIM config, without clipboard sharing, Neovim is effectively unusable for development under windows. To get clipboard sharing to work, you'll need an X-server such as VcXrv. I suggest you follow the steps outlined in this stackoverflow post.
Here's a decent blog post on setting up Python dev environment in neovim.
-
Problem diagnosis --> Run
:CheckHealth
-
Common problem:
ERROR: has("python3") was not succesful
To fix: run pip3 install neovim
in the same python enviornment you set in step 4.