aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-15 21:54:04 -0400
committerGitHub <noreply@github.com>2021-04-15 21:54:04 -0400
commitd8e7fbe193cb3c811e305873a1f99b9f02d36d5f (patch)
tree1c28ab9cb3df836e149a92ca878548b1b4758f1e /runtime
parentb8c0fac762f4b03f0438d3888ccf3f200648b882 (diff)
parent97288e73c27d45b0fadbd6efa437fe54bc58b5e3 (diff)
downloadrneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.gz
rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.tar.bz2
rneovim-d8e7fbe193cb3c811e305873a1f99b9f02d36d5f.zip
Merge pull request #14367 from janlazo/vim-8.2.2046
vim-patch:8.2.{265,2761,2764}
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index c3736d9a3e..cc84bb6c97 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -10099,6 +10099,8 @@ This function can then be called with: >
The recursiveness of user functions is restricted with the |'maxfuncdepth'|
option.
+It is also possible to use `:eval`. It does not support a range.
+
AUTOMATICALLY LOADING FUNCTIONS ~
*autoload-functions*
@@ -10532,6 +10534,20 @@ text...
Unlock the internal variable {name}. Does the
opposite of |:lockvar|.
+ *:eval*
+:eval {expr} Evaluate {expr} and discard the result. Example: >
+ :eval append(Filter(Getlist()), '$')
+
+< The expression is supposed to have a side effect,
+ since the resulting value is not used. In the example
+ the `append()` call appends the List with text to the
+ buffer. This is similar to `:call` but works with any
+ expression.
+
+ The command can be shortened to `:ev` or `:eva`, but
+ these are hard to recognize and therefore not to be
+ used.
+
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
:en[dif] Execute the commands until the next matching ":else"