mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:partial:d899e5112079
Update runtime files
d899e51120
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
c6ebcd523d
commit
f2a9097d76
@ -2569,20 +2569,20 @@ text...
|
|||||||
{endmarker}.
|
{endmarker}.
|
||||||
|
|
||||||
If "eval" is not specified, then each line of text is
|
If "eval" is not specified, then each line of text is
|
||||||
used as a |literal-string|. If "eval" is specified,
|
used as a |literal-string|, except that single quotes
|
||||||
then any Vim expression in the form ``={expr}`` is
|
doe not need to be doubled.
|
||||||
evaluated and the result replaces the expression.
|
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: >
|
Example where $HOME is expanded: >
|
||||||
let lines =<< trim eval END
|
let lines =<< trim eval END
|
||||||
some text
|
some text
|
||||||
See the file `=$HOME`/.vimrc
|
See the file {$HOME}/.vimrc
|
||||||
more text
|
more text
|
||||||
END
|
END
|
||||||
< There can be multiple Vim expressions in a single line
|
< There can be multiple Vim expressions in a single line
|
||||||
but an expression cannot span multiple lines. If any
|
but an expression cannot span multiple lines. If any
|
||||||
expression evaluation fails, then the assignment fails.
|
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} must not contain white space.
|
||||||
{endmarker} cannot start with a lower case character.
|
{endmarker} cannot start with a lower case character.
|
||||||
@ -2635,10 +2635,10 @@ text...
|
|||||||
DATA
|
DATA
|
||||||
|
|
||||||
let code =<< trim eval CODE
|
let code =<< trim eval CODE
|
||||||
let v = `=10 + 20`
|
let v = {10 + 20}
|
||||||
let h = "`=$HOME`"
|
let h = "{$HOME}"
|
||||||
let s = "`=Str1()` abc `=Str2()`"
|
let s = "{Str1()} abc {Str2()}"
|
||||||
let n = `=MyFunc(3, 4)`
|
let n = {MyFunc(3, 4)}
|
||||||
CODE
|
CODE
|
||||||
<
|
<
|
||||||
*E121*
|
*E121*
|
||||||
|
Loading…
Reference in New Issue
Block a user