Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Fix check / load of Python versions #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matthew-brett
Copy link
Contributor

The previous code checks for Python 2, unconditionally, with
has('python'). Unfortunately, this loads Python2 in vim, and then
prevents Python3 loading correctly. As a result, if you specify you
want Python3 in your vimrc, and you have both Pythons installed into
Vim, then you'll get Python2.

Fix by checking the vimrc configuration before checking for the presence
of Python versions.

The previous code checks for Python 2, unconditionally, with
`has('python')`.  Unfortunately, this loads Python2 in vim, and then
prevents Python3 loading correctly.  As a result, if you specify you
want Python3 in your vimrc, and you have both Pythons installed into
Vim, then you'll get Python2.

Fix by checking the vimrc configuration before checking for the presence
of Python versions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant