fisadev / vim-isort

Vim plugin to sort python imports using https://github.com/timothycrosley/isort
MIT License
219 stars 32 forks source link

Check for python3 support before python2 #17

Open DXist opened 7 years ago

DXist commented 7 years ago

I think it's time to check for python3 support before python2 (Python 2 support end of life is 2020, see https://www.python.org/dev/peps/pep-0373/).

It will be easier to start new Python3 projects without extra vim-isort configuration.

At the moment I use Neovim and have both Python2 and Python3 available. I find setting g:vim_isort_python_version in project level nvimrc cumbersome.

j2kun commented 7 years ago

+1

tats-u commented 6 years ago

I absolutely agree with you, and I'd like the developers to at least check the version of $(which python) or which python $(which isort) uses. I use Anaconda3 and $(which python) is the version 3, but this plugin won't use any Pythons other than /usr/bin/python2 (/usr/bin/python), which is not referred to by $(which python) when Anaconda is activated.

vdwees commented 4 years ago

Closed with https://github.com/fisadev/vim-isort/commit/b749d009075a333634dc61a039a2dc0e7f34609c ?