Debdeep Bhattacharya

View My GitHub Profile

Setting up vim in a local environment

14 Dec 2021

If you are working in a linux environment without superuser privileges, you can set up vim (or nvim) and its plugins in the following way.

vim

nvim

Using nvim as an alias for vim

In .bashrc add

alias vim=nvim
alias vimdiff="nvim -d"

fixing Ultisnip python3 path

let g:python3_host_prog = <full path from `which python3` output>
pip3 install pynvim

nodejs

wget -c https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.xz

coc.nvim

cd $HOME/.vim/plugged/coc.nvim
npm install

ranger

I use ranger as a browser within vim via the plugin francoiscabrol/ranger.vim. To install ranger via pip,

pip3 install ranger-fm

Issues

In the local environment, I have noticed the following issues.