diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-30 17:57:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-30 17:57:03 +0100 |
commit | 91359014b359cf816bf943fe2c7d492996263def (patch) | |
tree | dc64c28d8316102cdfee1ace9856efe40da55a23 /runtime/doc/if_pyth.txt | |
parent | e219f73ed546abeba1ff4f5c08b380d648852222 (diff) |
Update runtime files.
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r-- | runtime/doc/if_pyth.txt | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index 4f04199d5e..1c50dcc2ac 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -1,4 +1,4 @@ -*if_pyth.txt* For Vim version 8.1. Last change: 2019 Jul 21 +*if_pyth.txt* For Vim version 8.1. Last change: 2019 Nov 29 VIM REFERENCE MANUAL by Paul Moore @@ -767,17 +767,28 @@ match the Python 2.x or Python 3 version Vim was compiled with. 10. Python 3 *python3* *:py3* *:python3* -The `:py3` and `:python3` commands work similar to `:python`. A simple check -if the `:py3` command is working: > - :py3 print("Hello") +:[range]py3 {stmt} +:[range]py3 << [endmarker] +{script} +{endmarker} -To see what version of Python you have: > - :py3 import sys - :py3 print(sys.version) +:[range]python3 {stmt} +:[range]python3 << [endmarker] +{script} +{endmarker} + The `:py3` and `:python3` commands work similar to `:python`. A + simple check if the `:py3` command is working: > + :py3 print("Hello") +< + To see what version of Python you have: > + :py3 import sys + :py3 print(sys.version) < *:py3file* -The `:py3file` command works similar to `:pyfile`. +:[range]py3f[ile] {file} + The `:py3file` command works similar to `:pyfile`. *:py3do* -The `:py3do` command works similar to `:pydo`. +:[range]py3do {body} + The `:py3do` command works similar to `:pydo`. Vim can be built in four ways (:version output): |