Improved documentation a bit.

This commit is contained in:
Holger Rapp 2012-10-25 07:18:27 +02:00
parent da776e37b5
commit 30fac27e9d

View File

@ -85,9 +85,16 @@ They print '1' if the python version is compiled in, '0' if not.
Test if Vim is compiled with python version 2.x: > Test if Vim is compiled with python version 2.x: >
:echo has("python") :echo has("python")
The python version Vim is linked agains can be found with: >
:py import sys; print(sys.version)
Test if Vim is compiled with python version 3.x: > Test if Vim is compiled with python version 3.x: >
:echo has("python3") :echo has("python3")
The python version Vim is linked agains can be found with: >
:py3 import sys; print(sys.version)
Note that Vim is maybe not using your system wide installed python version, so
make sure to check the Python version inside of Vim.
UltiSnips attempts to autodetect which python version is compiled into Vim. UltiSnips attempts to autodetect which python version is compiled into Vim.
Unfortunately, in some versions of Vim this detection does not work. Unfortunately, in some versions of Vim this detection does not work.