aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-10-07 21:51:04 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-10-07 21:51:04 -0700
commit3b3a40978117a79cd6960c820b12e6f04408ac25 (patch)
tree347bf4fa16579a0d78314589babd405b520f68a3 /runtime
parent7faa6c41c89f1c5d48f92a436ed690bc7ce6ea85 (diff)
parent0586a4b512b2495d32f20c46946d35a0d403bd52 (diff)
downloadrneovim-3b3a40978117a79cd6960c820b12e6f04408ac25.tar.gz
rneovim-3b3a40978117a79cd6960c820b12e6f04408ac25.tar.bz2
rneovim-3b3a40978117a79cd6960c820b12e6f04408ac25.zip
Merge #11077 'vim-patch:8.1.{1354,1356,1362,1588}'
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 5e6bfd0dbc..607e88b7c8 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -9779,6 +9779,44 @@ This does NOT work: >
Like above, but append/add/subtract the value for each
|List| item.
+ *:let=<<* *:let-heredoc* *E990* *E991*
+:let {var-name} =<< [trim] {marker}
+text...
+text...
+{marker}
+ Set internal variable {var-name} to a List containing
+ the lines of text bounded by the string {marker}.
+ {marker} must not contain white space.
+ The last line should end only with the {marker} string
+ without any other character. Watch out for white
+ space after {marker}!
+ If {marker} is not supplied, then "." is used as the
+ default marker.
+
+ Any white space characters in the lines of text are
+ preserved. If "trim" is specified before {marker},
+ then all the leading indentation exactly matching the
+ leading indentation before `let` is stripped from the
+ input lines and the line containing {marker}. Note
+ that the difference between space and tab matters
+ here.
+
+ If {var-name} didn't exist yet, it is created.
+ Cannot be followed by another command, but can be
+ followed by a comment.
+
+ Examples: >
+ let var1 =<< END
+ Sample text 1
+ Sample text 2
+ Sample text 3
+ END
+
+ let data =<< trim DATA
+ 1 2 3 4
+ 5 6 7 8
+ DATA
+<
*E121*
:let {var-name} .. List the value of variable {var-name}. Multiple
variable names may be given. Special names recognized