On Tuesday, April 26, 2016 at 4:29:07 PM UTC+8, Markus Meskanen wrote: > While I don't expect Vim to become an easy-to-use text editor for beginners > or anything, the current Python support simply isn't enough for a standard > coder. Vim doesn't support multiple Python versions, so you have to compile > multiple versions of Vim. And every time you update your Python, you must > recompile Vim. Other editors simply do Python better. > > > — > You are receiving this because you commented. > Reply to this email directly or view it on GitHub
----------------------------------------------------------------- You can have the full power of Python from within your Vim only if Vim and Python can run *in the same thread with the same memory space*, this can only be achieved by *embedding* Python into Vim, not invoking it. The dynamic run-time solution you mentioned is awfully slow and inefficient. Can you imagine an application's UI starts its back-end as an external process and then use a pipe or socket to communicate with it later? Its awful. UI and the back-end should be within the same process. Emacs even try to do data translation between Python and Elisp with its Pymacs, again, its awful, hopeless. Vim should never do that. I suppose Python itself doesn't have good support for multiple versions within the same environment, try creating a Py2 list inside Py3. You can build a py3-enabled Vim and run py2 as an external process, or vice versa. You can have both Vims on your system and choose between them each time accordingly, I suppose you won't definitely need one project of yours half in Py2 and half in Py3. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
