diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 23:09:56 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 23:14:36 +0200 |
commit | 2e64752250c89623ff5d6dc54e8a54038f32d78f (patch) | |
tree | 1d998003870f1716e8b6edca007c858e0a3db9f9 /runtime/doc/if_pyth.txt | |
parent | 06879e2e890dd6cb7bbeb4ce6b78d0cf41500ab5 (diff) | |
download | rneovim-2e64752250c89623ff5d6dc54e8a54038f32d78f.tar.gz rneovim-2e64752250c89623ff5d6dc54e8a54038f32d78f.tar.bz2 rneovim-2e64752250c89623ff5d6dc54e8a54038f32d78f.zip |
vim-patch:64d8e25bf6ef
Updated runtime files.
https://github.com/vim/vim/commit/64d8e25bf6efe5f18b032563521c3ce278c316ab
Closes #6611
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r-- | runtime/doc/if_pyth.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index 6321175420..8d6a3e1cfa 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -48,7 +48,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. @@ -693,6 +697,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`. |