300+ free and legal portable apps (over 9GB), up-to-date, & new apps regularly (Jul 15, 2014: CherryTree).
Get the fast, new 64GB PortableApps.com Companion, encrypted PortableApps.com Carbide, or carry your KeyZ.
PA.c Platform 12.0 Beta 3.2 (May 20, 2014) | PortableApps.com needs your help: Please donate today.

gVim with Python

kemmotar - February 18, 2012 - 5:42am

How to add to gvim python support?


( categories: )

python24.dll in path

You'll need to have Python 2.4 and add the directory containing python24.dll to the PATH (see the python-dynamic help).

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

How to add dynamically to path?

Is there a way to edit the path portably? I was hoping there was just a gvim setting that would allow me to specify the location of python24.dll, but it looks like adding to the path is the only way.

[Edit]
Way to go for doing this, by the way. I use it all the time. By far my favorite portable app.

[Update]

I realized I could probably figure out how to tweak the launcher.ini in order to change the path. However, I am having trouble getting python-dynamic to show up, even with python27.dll or python26.dll, or python24.dll in the plain-old normal system path.

When I type :version it doesn't show "python\dyn". Are you sure this is possible with this compilation?

I am in the process of checking to see which version of python is supported with the standard compilation for windows. I believe it may be 2.2 based on the Visual Studio make file here: https://code.google.com/p/vim/source/browse/src/Make_mvc.mak

Will post back if 2.2 works.

[Update]

No luck. I believe, based on the link above, that dynamic loading of python might not be defined in the default compilation. Has anyone had any luck with this?

And after I had thought of it,
I said, "I will, then, be a toad."