Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.6 KB

README.md

File metadata and controls

49 lines (26 loc) · 1.6 KB

Vim Configuration

My current vim config, up to date as of 12/24/2020.

To be used with neovim, running on WSL 2

Setup

  1. Clone repository

  2. Create the following symbolic links (for Vim):

ln -s [REPO]/.vimrc ~/.vimrc

ln -s [REPO]/.vim ~/vim

  1. 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

  1. Update your python paths. Edit the third line in [REPO]/.vimrc to point to your respective python path.

  2. Open neovim, run ex-command: :PlugInstall

Clipboard Sharing

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.

Python Environment

Here's a decent blog post on setting up Python dev environment in neovim.

Troubleshooting

  • 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.