Mercurial > vim
diff runtime/doc/if_tcl.txt @ 20045:04ef2ccf2519 v8.2.0578
patch 8.2.0578: heredoc for interfaces does not support "trim"
Commit: https://github.com/vim/vim/commit/6c2b7b8055b96463f78abb70f58c4c6d6d4b9d55
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 14 20:15:49 2020 +0200
patch 8.2.0578: heredoc for interfaces does not support "trim"
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Apr 2020 20:30:05 +0200 |
parents | af69c9335223 |
children | 1b345fb68ae3 |
line wrap: on
line diff
--- a/runtime/doc/if_tcl.txt +++ b/runtime/doc/if_tcl.txt @@ -30,7 +30,7 @@ 1. Commands *tcl-ex-commands* *E571* is working: > :tcl puts "Hello" -:[range]tc[l] << [endmarker] +:[range]tc[l] << [trim] [{endmarker}] {script} {endmarker} Execute Tcl script {script}. @@ -38,10 +38,9 @@ 1. Commands *tcl-ex-commands* *E571* wasn't compiled in. To avoid errors, see |script-here|. -The {endmarker} after {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 |:tcl| command is mainly useful for including tcl code in Vim scripts.