From 30fac27e9d977985e6ecf8ce75bc2419ab62ac13 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 25 Oct 2012 07:18:27 +0200 Subject: [PATCH] Improved documentation a bit. --- doc/UltiSnips.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index ecb5a54..30d1291 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -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: > :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: > :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. Unfortunately, in some versions of Vim this detection does not work.