tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.74k stars 139 forks source link

Implement choosing between python2 and python3 #324

Closed raymond-w-ko closed 5 years ago

raymond-w-ko commented 5 years ago

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

tpope commented 5 years ago

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.

tpope commented 5 years ago

Moot.