comparison runtime/doc/eval.txt @ 21499:3a1ed539ae2a

Update runtime files. Commit: https://github.com/vim/vim/commit/2547aa930b59f5e2bcb70e81d5a57ed461e59b4f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 26 17:00:44 2020 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jul 2020 17:15:05 +0200
parents 2c40e60017a8
children 24cb89db078d
comparison
equal deleted inserted replaced
21498:134699e667ee 21499:3a1ed539ae2a
1 *eval.txt* For Vim version 8.2. Last change: 2020 Jul 19 1 *eval.txt* For Vim version 8.2. Last change: 2020 Jul 21
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1992 value is zero when there was no mouse button click. 1992 value is zero when there was no mouse button click.
1993 1993
1994 *v:none* *none-variable* *None* 1994 *v:none* *none-variable* *None*
1995 v:none An empty String. Used to put an empty item in JSON. See 1995 v:none An empty String. Used to put an empty item in JSON. See
1996 |json_encode()|. 1996 |json_encode()|.
1997 This can also be used as a function argument to use the
1998 default value, see |none-function_argument|.
1997 When used as a number this evaluates to zero. 1999 When used as a number this evaluates to zero.
1998 When used as a string this evaluates to "v:none". > 2000 When used as a string this evaluates to "v:none". >
1999 echo v:none 2001 echo v:none
2000 < v:none ~ 2002 < v:none ~
2001 That is so that eval() can parse the string back to the same 2003 That is so that eval() can parse the string back to the same
11708 11710
11709 The argument default expressions are evaluated at the time of the function 11711 The argument default expressions are evaluated at the time of the function
11710 call, not definition. Thus it is possible to use an expression which is 11712 call, not definition. Thus it is possible to use an expression which is
11711 invalid the moment the function is defined. The expressions are also only 11713 invalid the moment the function is defined. The expressions are also only
11712 evaluated when arguments are not specified during a call. 11714 evaluated when arguments are not specified during a call.
11713 11715 *none-function_argument*
11714 You can pass |v:none| to use the default expression. Note that this means you 11716 You can pass |v:none| to use the default expression. Note that this means you
11715 cannot pass v:none as an ordinary value when an argument has a default 11717 cannot pass v:none as an ordinary value when an argument has a default
11716 expression. 11718 expression.
11717 11719
11718 Example: > 11720 Example: >