Mercurial > vim
diff runtime/doc/eval.txt @ 18639:cb3163d590a1
Update runtime files.
Commit: https://github.com/vim/vim/commit/09c6f265b21065ffa9437837b1d0955137175e45
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 17 15:55:14 2019 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Nov 2019 16:00:05 +0100 |
parents | 3089b422b9dc |
children | 9007e9896303 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2019 Nov 06 +*eval.txt* For Vim version 8.1. Last change: 2019 Nov 17 VIM REFERENCE MANUAL by Bram Moolenaar @@ -11585,21 +11585,6 @@ text... Unlock the internal variable {name}. Does the opposite of |:lockvar|. - *:eval* -:eval {expr} Evaluate {expr} and discard the result. Example: > - :eval Getlist()->Filter()->append('$') - -< 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" or ":endif" if {expr1} evaluates to non-zero. @@ -11886,6 +11871,21 @@ text... And to get a beep: > :exe "normal \<Esc>" < + *:eval* +:eval {expr} Evaluate {expr} and discard the result. Example: > + :eval Getlist()->Filter()->append('$') + +< 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. + + *:exe* *:execute* :exe[cute] {expr1} .. Executes the string that results from the evaluation of {expr1} as an Ex command.