diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 19:02:02 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 19:02:52 +0800 |
commit | f2a9097d764cf61b9479d7633a9738077f75f43c (patch) | |
tree | a86dc5d700ab3f0f17160e16a81475f9f15a1913 /runtime/doc/eval.txt | |
parent | c6ebcd523dc91c8b1d52a8c9a61aca3d3a59250b (diff) | |
download | rneovim-f2a9097d764cf61b9479d7633a9738077f75f43c.tar.gz rneovim-f2a9097d764cf61b9479d7633a9738077f75f43c.tar.bz2 rneovim-f2a9097d764cf61b9479d7633a9738077f75f43c.zip |
vim-patch:partial:d899e5112079
Update runtime files
https://github.com/vim/vim/commit/d899e51120798d3fb5420abb1f19dddf3f014d05
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 518a190d3c..072d894aff 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2569,20 +2569,20 @@ text... {endmarker}. If "eval" is not specified, then each line of text is - used as a |literal-string|. If "eval" is specified, - then any Vim expression in the form ``={expr}`` is - evaluated and the result replaces the expression. + used as a |literal-string|, except that single quotes + doe not need to be doubled. + If "eval" is specified, then any Vim expression in the + form {expr} is evaluated and the result replaces the + expression, like with |interp-string|. Example where $HOME is expanded: > let lines =<< trim eval END some text - See the file `=$HOME`/.vimrc + See the file {$HOME}/.vimrc more text END < There can be multiple Vim expressions in a single line but an expression cannot span multiple lines. If any expression evaluation fails, then the assignment fails. - once the "`=" has been found {expr} and a backtick - must follow. {expr} cannot be empty. {endmarker} must not contain white space. {endmarker} cannot start with a lower case character. @@ -2635,10 +2635,10 @@ text... DATA let code =<< trim eval CODE - let v = `=10 + 20` - let h = "`=$HOME`" - let s = "`=Str1()` abc `=Str2()`" - let n = `=MyFunc(3, 4)` + let v = {10 + 20} + let h = "{$HOME}" + let s = "{Str1()} abc {Str2()}" + let n = {MyFunc(3, 4)} CODE < *E121* |