diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-14 20:15:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-14 20:15:49 +0200 |
commit | 6c2b7b8055b96463f78abb70f58c4c6d6d4b9d55 (patch) | |
tree | 597e3992bed8691b13c5a2c4a459d2541b9acc18 /runtime/doc/if_pyth.txt | |
parent | 7a1637f4c00ac3d0cbf894803ada1586a1717470 (diff) | |
download | vim-git-6c2b7b8055b96463f78abb70f58c4c6d6d4b9d55.tar.gz |
patch 8.2.0578: heredoc for interfaces does not support "trim"v8.2.0578
Problem: Heredoc for interfaces does not support "trim".
Solution: Update the script heredoc support to be same as the :let command.
(Yegappan Lakshmanan, closes #5916)
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r-- | runtime/doc/if_pyth.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index 88e0df6b4..572e6bf7b 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -34,7 +34,7 @@ Both can be available at the same time, but read |python-2-and-3|. the `:python` command is working: > :python print "Hello" -:[range]py[thon] << [endmarker] +:[range]py[thon] << [trim] [{endmarker}] {script} {endmarker} Execute Python script {script}. @@ -42,10 +42,9 @@ Both can be available at the same time, but read |python-2-and-3|. feature wasn't compiled in. To avoid errors, see |script-here|. -The {endmarker} below the {script} must NOT be preceded by any white space. - If [endmarker] is omitted from after the "<<", a dot '.' must be used after -{script}, like for the |:append| and |:insert| commands. +{script}, like for the |:append| and |:insert| commands. Refer to +|:let-heredoc| for more information. This form of the |:python| command is mainly useful for including python code in Vim scripts. @@ -768,12 +767,12 @@ match the Python 2.x or Python 3 version Vim was compiled with. *:py3* *:python3* :[range]py3 {stmt} -:[range]py3 << [endmarker] +:[range]py3 << [trim] [{endmarker}] {script} {endmarker} :[range]python3 {stmt} -:[range]python3 << [endmarker] +:[range]python3 << [trim] [{endmarker}] {script} {endmarker} The `:py3` and `:python3` commands work similar to `:python`. A |