I'm working on a server that has various different python installations set up. At any one time, only one will be accessable and working, depending on what I am working on. Some are python2, some python3. They are not all located in the same place. Not my arrangement, and I cannot change it.
Vim understandably has trouble finding the python install, and frequently coughs up a litany of errors when the plugins don't run properly. The plugins are nice to have, but I don't need them. Basic vim is actually still a very nice editor. I would like to get rid of the errors, because there are pages of them.
Is there a way I can put a check in my vimrc that will stop the plugins from loading if a valid python installation is not found?
I'm using vundle if that makes any difference.
This answer is nearly what I need. I just need a test for a valid python install, rather than a version of vim.
:py
statement?if
statements really want to beelse if
, but I couldn't figure out how to do that.