Mercurial > vim
diff runtime/doc/eval.txt @ 19099:1a951a4beee3
Update runtime files.
Commit: https://github.com/vim/vim/commit/2963456ff2b740244b3a064785fe681b1998d75e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 9 21:46:04 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Jan 2020 22:00:05 +0100 |
parents | d20ed2e5a776 |
children | 63beef1ca62c |
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.2. Last change: 2020 Jan 02 +*eval.txt* For Vim version 8.2. Last change: 2020 Jan 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3047,10 +3047,6 @@ argv([{nr} [, {winid}]) The {winid} argument specifies the window ID, see |argc()|. For the Vim command line arguments see |v:argv|. - -assert_ functions are documented here: |assert-functions-details| - - asin({expr}) *asin()* Return the arc sine of {expr} measured in radians, as a |Float| in the range of [-pi/2, pi/2]. @@ -3068,6 +3064,10 @@ asin({expr}) *asin()* {only available when compiled with the |+float| feature} +assert_ functions are documented here: |assert-functions-details| + + + atan({expr}) *atan()* Return the principal value of the arc tangent of {expr}, in the range [-pi/2, +pi/2] radians, as a |Float|. @@ -3935,13 +3935,6 @@ diff_hlID({lnum}, {col}) *diff_hlID() Can also be used as a |method|: > GetLnum()->diff_hlID(col) -environ() *environ()* - Return all of environment variables as dictionary. You can - check if an environment variable exists like this: > - :echo has_key(environ(), 'HOME') -< Note that the variable name may be CamelCase; to ignore case - use this: > - :echo index(keys(environ()), 'HOME', 0, 1) != -1 empty({expr}) *empty()* Return the Number 1 if {expr} is empty, zero otherwise. @@ -3960,6 +3953,14 @@ empty({expr}) *empty()* Can also be used as a |method|: > mylist->empty() +environ() *environ()* + Return all of environment variables as dictionary. You can + check if an environment variable exists like this: > + :echo has_key(environ(), 'HOME') +< Note that the variable name may be CamelCase; to ignore case + use this: > + :echo index(keys(environ()), 'HOME', 0, 1) != -1 + escape({string}, {chars}) *escape()* Escape the characters in {chars} that occur in {string} with a backslash. Example: > @@ -7084,9 +7085,9 @@ matchstrpos({expr}, {pat} [, {start} [, < *max()* max({expr}) Return the maximum value of all items in {expr}. - {expr} can be a list or a dictionary. For a dictionary, - it returns the maximum of all values in the dictionary. - If {expr} is neither a list nor a dictionary, or one of the + {expr} can be a List or a Dictionary. For a Dictionary, + it returns the maximum of all values in the Dictionary. + If {expr} is neither a List nor a Dictionary, or one of the items in {expr} cannot be used as a Number this results in an error. An empty |List| or |Dictionary| results in zero. @@ -7095,9 +7096,9 @@ max({expr}) Return the maximum value of < *min()* min({expr}) Return the minimum value of all items in {expr}. - {expr} can be a list or a dictionary. For a dictionary, - it returns the minimum of all values in the dictionary. - If {expr} is neither a list nor a dictionary, or one of the + {expr} can be a List or a Dictionary. For a Dictionary, + it returns the minimum of all values in the Dictionary. + If {expr} is neither a List nor a Dictionary, or one of the items in {expr} cannot be used as a Number this results in an error. An empty |List| or |Dictionary| results in zero. @@ -10360,6 +10361,7 @@ win_splitmove({nr}, {target} [, {options then closing {nr}. Both {nr} and {target} can be window numbers or |window-ID|s. + Both must be in the current tab page. Returns zero for success, non-zero for failure.