This patch replaces all hardcoded usage of python2 with variables so that one can select between Python 2 and 3. It prefers Python 3 as I think that is the future and Python 2 retires in 2020.
I did this patch while trying to diagnose hangs and thought it might be useful if we need to switch between the two version of Python.
One thing that might be sub-optimal is that I had to move some code to a new file as I don't think you can use :exe with python << EOF
I've been resisting this but it's probably time. I'd feel much better using functions as the interface (fireplace#python_exe()) rather than _ variables.
This patch replaces all hardcoded usage of python2 with variables so that one can select between Python 2 and 3. It prefers Python 3 as I think that is the future and Python 2 retires in 2020.
I did this patch while trying to diagnose hangs and thought it might be useful if we need to switch between the two version of Python.
One thing that might be sub-optimal is that I had to move some code to a new file as I don't think you can use
:exe
withpython << EOF