So most of my contributions to the library are happening with me working on a remote server over SSH. I’m very comfortable with VSCode which unfortunately does work very well in this kind of setup. Started using VIM but I’m confused about what the best and least complicated way is to get the following features I’m use to in VSCode …
Autocompletion/Intellisense (especially one that works against a custom Anaconda environment)
Line numbers to show up on left-side of editor
Color coding
Being able to navigate to the definition of variables/classes/methods by clicking on them (for example, if I see a class inheriting from Callback, I’d like to be able to click on Callback in that file and have it take me to the file where Callback class is defined.
I’ve seen some crazy complex .vimrc files and I’d rather avoid that as much as possible. Any recommendations, thoughts, advice, etc… is very appreciated.
Yah Google a bit on that one, I remember seeing some other options with configuring powerline for similar setups, but I can’t recall off hand what they were.
Error detected while processing /home/hiromi/.vimrc:
line 10:
E319: Sorry, the command is not available in this version: python import sys; sys.path.append("/home/hiromi/src/miniconda3/envs/fastai/lib/python3.6/site-packages")
line 11:
E319: Sorry, the command is not available in this version: python from powerline.vim import setup as powerline_setup
line 12:
E319: Sorry, the command is not available in this version: python powerline_setup()
line 13:
E319: Sorry, the command is not available in this version: python del powerline_setup
Press ENTER or type command to continue
I ended up running:
vim --version | grep +python
Which returned +python3, so I ended up changing python to python3 and everything works now
I was able to avoid recompiling vim from source by installing the vim-nox version which comes with python3 support compiled in.
After install just updated the alternatives and modified vimrc as above (also changing the sys.path to point to where my python site-packages were stored).
http://vim.fisadev.com
This project seems to offer a python setup for VIM which goes pretty close to an IDE.
This can be helpful while working in a remote machine.