Mercurial > vim
comparison runtime/doc/if_pyth.txt @ 17571:2704c4e3e20a
Update runtime files.
commit https://github.com/vim/vim/commit/5477506a9f01d40fad2e8f0555bc37adee30478f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 31 21:07:14 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 31 Jul 2019 21:15:08 +0200 |
parents | 0e473e9e70c2 |
children | 82a28df1e2d5 |
comparison
equal
deleted
inserted
replaced
17570:74bf9a7da416 | 17571:2704c4e3e20a |
---|---|
1 *if_pyth.txt* For Vim version 8.1. Last change: 2019 May 04 | 1 *if_pyth.txt* For Vim version 8.1. Last change: 2019 Jul 21 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Paul Moore | 4 VIM REFERENCE MANUAL by Paul Moore |
5 | 5 |
6 | 6 |
32 :[range]py[thon] {stmt} | 32 :[range]py[thon] {stmt} |
33 Execute Python statement {stmt}. A simple check if | 33 Execute Python statement {stmt}. A simple check if |
34 the `:python` command is working: > | 34 the `:python` command is working: > |
35 :python print "Hello" | 35 :python print "Hello" |
36 | 36 |
37 :[range]py[thon] << {endmarker} | 37 :[range]py[thon] << [endmarker] |
38 {script} | 38 {script} |
39 {endmarker} | 39 {endmarker} |
40 Execute Python script {script}. | 40 Execute Python script {script}. |
41 Note: This command doesn't work when the Python | 41 Note: This command doesn't work when the Python |
42 feature wasn't compiled in. To avoid errors, see | 42 feature wasn't compiled in. To avoid errors, see |
43 |script-here|. | 43 |script-here|. |
44 | 44 |
45 {endmarker} must NOT be preceded by any white space. If {endmarker} is | 45 The {endmarker} below the {script} must NOT be preceded by any white space. |
46 omitted from after the "<<", a dot '.' must be used after {script}, like | 46 |
47 for the |:append| and |:insert| commands. | 47 If [endmarker] is omitted from after the "<<", a dot '.' must be used after |
48 {script}, like for the |:append| and |:insert| commands. | |
49 | |
48 This form of the |:python| command is mainly useful for including python code | 50 This form of the |:python| command is mainly useful for including python code |
49 in Vim scripts. | 51 in Vim scripts. |
50 | 52 |
51 Example: > | 53 Example: > |
52 function! IcecreamInitialize() | 54 function! IcecreamInitialize() |