Mercurial > vim
comparison runtime/doc/if_pyth.txt @ 18750:82a28df1e2d5
Update runtime files.
Commit: https://github.com/vim/vim/commit/91359014b359cf816bf943fe2c7d492996263def
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 17:57:03 2019 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 18:00:05 +0100 |
parents | 2704c4e3e20a |
children | 6848b809a26e |
comparison
equal
deleted
inserted
replaced
18749:8217e179eb58 | 18750:82a28df1e2d5 |
---|---|
1 *if_pyth.txt* For Vim version 8.1. Last change: 2019 Jul 21 | 1 *if_pyth.txt* For Vim version 8.1. Last change: 2019 Nov 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Paul Moore | 4 VIM REFERENCE MANUAL by Paul Moore |
5 | 5 |
6 | 6 |
765 | 765 |
766 ============================================================================== | 766 ============================================================================== |
767 10. Python 3 *python3* | 767 10. Python 3 *python3* |
768 | 768 |
769 *:py3* *:python3* | 769 *:py3* *:python3* |
770 The `:py3` and `:python3` commands work similar to `:python`. A simple check | 770 :[range]py3 {stmt} |
771 if the `:py3` command is working: > | 771 :[range]py3 << [endmarker] |
772 :py3 print("Hello") | 772 {script} |
773 | 773 {endmarker} |
774 To see what version of Python you have: > | 774 |
775 :py3 import sys | 775 :[range]python3 {stmt} |
776 :py3 print(sys.version) | 776 :[range]python3 << [endmarker] |
777 {script} | |
778 {endmarker} | |
779 The `:py3` and `:python3` commands work similar to `:python`. A | |
780 simple check if the `:py3` command is working: > | |
781 :py3 print("Hello") | |
782 < | |
783 To see what version of Python you have: > | |
784 :py3 import sys | |
785 :py3 print(sys.version) | |
777 < *:py3file* | 786 < *:py3file* |
778 The `:py3file` command works similar to `:pyfile`. | 787 :[range]py3f[ile] {file} |
788 The `:py3file` command works similar to `:pyfile`. | |
779 *:py3do* | 789 *:py3do* |
780 The `:py3do` command works similar to `:pydo`. | 790 :[range]py3do {body} |
791 The `:py3do` command works similar to `:pydo`. | |
781 | 792 |
782 | 793 |
783 Vim can be built in four ways (:version output): | 794 Vim can be built in four ways (:version output): |
784 1. No Python support (-python, -python3) | 795 1. No Python support (-python, -python3) |
785 2. Python 2 support only (+python or +python/dyn, -python3) | 796 2. Python 2 support only (+python or +python/dyn, -python3) |