summaryrefslogtreecommitdiffstats
path: root/runtime/doc/if_pyth.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-06 22:12:34 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-06 22:12:34 +0200
commit64d8e25bf6efe5f18b032563521c3ce278c316ab (patch)
tree6f91d8b81c77b1fc98b09e929b4bb0313f358dee /runtime/doc/if_pyth.txt
parent6384c5db8dda70076c878d393ba19a1510695228 (diff)
Updated runtime files.
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r--runtime/doc/if_pyth.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt
index d9ae025602..3b81b0c961 100644
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -1,4 +1,4 @@
-*if_pyth.txt* For Vim version 7.4. Last change: 2015 Nov 10
+*if_pyth.txt* For Vim version 7.4. Last change: 2016 Sep 01
VIM REFERENCE MANUAL by Paul Moore
@@ -56,7 +56,11 @@ Example: >
print 'EAT ME'
EOF
endfunction
-<
+
+To see what version of Python you have: >
+ :python import sys
+ :python print(sys.version)
+
Note: Python is very sensitive to the indenting. Make sure the "class" line
and "EOF" do not have any indent.
@@ -745,6 +749,10 @@ The `:py3` and `:python3` commands work similar to `:python`. A simple check
if the `:py3` command is working: >
:py3 print("Hello")
< *:py3file*
+To see what version of Python you have: >
+ :py3 import sys
+ :py3 print(sys.version)
+
The `:py3file` command works similar to `:pyfile`.
*:py3do*
The `:py3do` command works similar to `:pydo`.