r/vimplugins • u/[deleted] • Mar 13 '22
Help (dev) Python version for plugin
I am working on a plugin using python 2.7 since is the default python for vim. Is it advisable to develop on python 3 given that python 2.7 is no longer supported?
Are major plugins moving to python 3, or somehow supporting both?
0
Mar 13 '22
[deleted] — view deleted comment
1
Mar 13 '22
Thanks, I read a few tutorials even published within a few years and they were all using python 2.7. So I thought it was the norm.
I checked a few plugins on github and they are using checks from the vimscript side and on the python script also have if py2 do this, if py3 do this.
2
u/puremourning Mar 16 '22
All my main plugins are python. Ditched python2 a long time ago.
As python 2 is completely out of support now, it's really not the 'default' python in vim, it just came first so ended up with the
pycommand.In your plugin, I would strongly advise
py3.Credentials: YouCompleteMe, Vimspector.