Permalink
Browse files

Improved documentation a bit.

  • Loading branch information...
SirVer committed Oct 25, 2012
1 parent da776e3 commit 30fac27e9d977985e6ecf8ce75bc2419ab62ac13
Showing with 7 additions and 0 deletions.
  1. +7 −0 doc/UltiSnips.txt
View
@@ -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.

0 comments on commit 30fac27

Please sign in to comment.