1- *eval.txt* For Vim version 8.2. Last change: 2021 Jan 13
1+ *eval.txt* For Vim version 8.2. Last change: 2021 Jan 22
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2082,6 +2082,12 @@ v:null An empty String. Used to put "null" in JSON. See
20822082 That is so that eval() can parse the string back to the same
20832083 value. Read-only.
20842084
2085+ *v:numbermax* *numbermax-variable*
2086+ v:numbermax Maximum value of a number.
2087+
2088+ *v:numbermin* *numbermin-variable*
2089+ v:numbermin Minimum value of a number (negative)
2090+
20852091 *v:numbersize* *numbersize-variable*
20862092v:numbersize Number of bits in a Number. This is normally 64, but on some
20872093 systems it may be 32.
@@ -4096,8 +4102,9 @@ delete({fname} [, {flags}]) *delete()*
40964102
40974103 A symbolic link itself is deleted, not what it points to.
40984104
4099- The result is a Number, which is 0 if the delete operation was
4100- successful and -1 when the deletion failed or partly failed.
4105+ The result is a Number, which is 0/false if the delete
4106+ operation was successful and -1/true when the deletion failed
4107+ or partly failed.
41014108
41024109 Use |remove()| to delete an item from a |List|.
41034110 To delete a line from the buffer use |:delete| or
@@ -6234,8 +6241,8 @@ has({feature} [, {check}])
62346241
62356242
62366243has_key({dict}, {key}) *has_key()*
6237- The result is a Number, which is 1 if |Dictionary| {dict} has
6238- an entry with key {key}. Zero otherwise.
6244+ The result is a Number, which is TRUE if |Dictionary| {dict}
6245+ has an entry with key {key}. FALSE otherwise.
62396246
62406247 Can also be used as a |method|: >
62416248 mydict->has_key(key)
@@ -6278,16 +6285,16 @@ haslocaldir([{winnr} [, {tabnr}]]) *haslocaldir()*
62786285 GetWinnr()->haslocaldir()
62796286
62806287hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
6281- The result is a Number, which is 1 if there is a mapping that
6282- contains {what} in somewhere in the rhs (what it is mapped to)
6283- and this mapping exists in one of the modes indicated by
6284- {mode}.
6288+ The result is a Number, which is TRUE if there is a mapping
6289+ that contains {what} in somewhere in the rhs (what it is
6290+ mapped to) and this mapping exists in one of the modes
6291+ indicated by {mode}.
62856292 When {abbr} is there and it is |TRUE| use abbreviations
62866293 instead of mappings. Don't forget to specify Insert and/or
62876294 Command-line mode.
62886295 Both the global mappings and the mappings local to the current
62896296 buffer are checked for a match.
6290- If no matching mapping is found 0 is returned.
6297+ If no matching mapping is found FALSE is returned.
62916298 The following characters are recognized in {mode}:
62926299 n Normal mode
62936300 v Visual and Select mode
@@ -6323,8 +6330,8 @@ histadd({history}, {item}) *histadd()*
63236330 character is sufficient.
63246331 If {item} does already exist in the history, it will be
63256332 shifted to become the newest entry.
6326- The result is a Number: 1 if the operation was successful,
6327- otherwise 0 is returned.
6333+ The result is a Number: TRUE if the operation was successful,
6334+ otherwise FALSE is returned.
63286335
63296336 Example: >
63306337 :call histadd("input", strftime("%Y %b %d"))
@@ -6347,8 +6354,8 @@ histdel({history} [, {item}]) *histdel()*
63476354 an index, see |:history-indexing|. The respective entry will
63486355 be removed if it exists.
63496356
6350- The result is a Number: 1 for a successful operation,
6351- otherwise 0 is returned.
6357+ The result is TRUE for a successful operation, otherwise FALSE
6358+ is returned.
63526359
63536360 Examples:
63546361 Clear expression register history: >
@@ -6400,7 +6407,7 @@ histnr({history}) *histnr()*
64006407 GetHistory()->histnr()
64016408<
64026409hlexists({name}) *hlexists()*
6403- The result is a Number, which is non-zero if a highlight group
6410+ The result is a Number, which is TRUE if a highlight group
64046411 called {name} exists. This is when the group has been
64056412 defined in some way. Not necessarily when highlighting has
64066413 been defined for it, it may also have been used for a syntax
@@ -6573,15 +6580,15 @@ inputrestore() *inputrestore()*
65736580 Restore typeahead that was saved with a previous |inputsave()|.
65746581 Should be called the same number of times inputsave() is
65756582 called. Calling it more often is harmless though.
6576- Returns 1 when there is nothing to restore, 0 otherwise.
6583+ Returns TRUE when there is nothing to restore, FALSE otherwise.
65776584
65786585inputsave() *inputsave()*
65796586 Preserve typeahead (also from mappings) and clear it, so that
65806587 a following prompt gets input from the user. Should be
65816588 followed by a matching inputrestore() after the prompt. Can
65826589 be used several times, in which case there must be just as
65836590 many inputrestore() calls.
6584- Returns 1 when out of memory, 0 otherwise.
6591+ Returns TRUE when out of memory, FALSE otherwise.
65856592
65866593inputsecret({prompt} [, {text}]) *inputsecret()*
65876594 This function acts much like the |input()| function with but
@@ -7057,7 +7064,7 @@ listener_flush([{buf}]) *listener_flush()*
70577064
70587065listener_remove({id}) *listener_remove()*
70597066 Remove a listener previously added with listener_add().
7060- Returns zero when {id} could not be found, one when {id} was
7067+ Returns FALSE when {id} could not be found, TRUE when {id} was
70617068 removed.
70627069
70637070 Can also be used as a |method|: >
@@ -7740,8 +7747,8 @@ mkdir({name} [, {path} [, {prot}]])
77407747 flag is passed (since patch 8.0.1708). However, without the
77417748 "p" option the call will fail.
77427749
7743- The function result is a Number, which is 1 if the call was
7744- successful or 0 if the directory creation failed or partly
7750+ The function result is a Number, which is TRUE if the call was
7751+ successful or FALSE if the directory creation failed or partly
77457752 failed.
77467753
77477754 Not available on all systems. To check use: >
@@ -9217,6 +9224,7 @@ server2client({clientid}, {string}) *server2client()*
92179224 Send a reply string to {clientid}. The most recent {clientid}
92189225 that sent a string can be retrieved with expand("<client>").
92199226 {only available when compiled with the |+clientserver| feature}
9227+ Returns zero for success, -1 for failure.
92209228 Note:
92219229 This id has to be stored before the next command can be
92229230 received. I.e. before returning from the received command and
@@ -9354,8 +9362,8 @@ setcmdpos({pos}) *setcmdpos()*
93549362 before inserting the resulting text.
93559363 When the number is too big the cursor is put at the end of the
93569364 line. A number smaller than one has undefined results.
9357- Returns 0 when successful, 1 when not editing the command
9358- line.
9365+ Returns FALSE when successful, TRUE when not editing the
9366+ command line.
93599367
93609368 Can also be used as a |method|: >
93619369 GetPos()->setcmdpos()
@@ -9414,8 +9422,8 @@ setline({lnum}, {text}) *setline()*
94149422 When {lnum} is just below the last line the {text} will be
94159423 added below the last line.
94169424
9417- If this succeeds, 0 is returned. If this fails (most likely
9418- because {lnum} is invalid) 1 is returned.
9425+ If this succeeds, FALSE is returned. If this fails (most likely
9426+ because {lnum} is invalid) TRUE is returned.
94199427
94209428 Example: >
94219429 :call setline(5, strftime("%c"))
@@ -11390,7 +11398,7 @@ win_gettype([{nr}]) *win_gettype()*
1139011398win_gotoid({expr}) *win_gotoid()*
1139111399 Go to window with ID {expr}. This may also change the current
1139211400 tabpage.
11393- Return 1 if successful, 0 if the window cannot be found.
11401+ Return TRUE if successful, FALSE if the window cannot be found.
1139411402
1139511403 Can also be used as a |method|: >
1139611404 GetWinid()->win_gotoid()
0 commit comments