Open brityboy opened 6 years ago
I also hit
:py import isort
and got this in response
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/anaconda/lib/python2.7/site-packages/isort/__init__.py", line 25, in <module>
from . import settings
ImportError: cannot import name settings
When opening up python via terminal, the command import isort
works
Thanks again!
I find the g:vim_isort_python_version
option confusing. It looks like you might be able to specify a path to a python interpreter, but in reality it is only looking for a match on the string python3
or python2
. Providing anything but those two strings results in the confusing error mentioned above:
Error detected while processing /Users/brian/.vim/plugin/python_vimisort.vim:
line 28:
E121: Undefined variable: s:available_short_python
... + 50 lines or so ...
FIrst of all, very cool plugin, thank you for making this.
I followed the instructions and when I hit
pip install isort
, I was happy to see this response from my terminalI selected the lines I wanted to sort, hit
Ctrl-i
and got this in responseConfused, I tried setting my python version with this in my
vimrc
fileBut got this as a response
Trying this
let g:vim_isort_python_version = 'anaconda/lib/python2.7'
returned the same result as aboveHelp please? Thanks for the awesome plugin!