1- *builtin.txt* For Vim version 9.1. Last change: 2024 Apr 04
1+ *builtin.txt* For Vim version 9.1. Last change: 2024 Apr 07
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -220,12 +220,12 @@ getbufvar({buf}, {varname} [, {def}])
220220 any variable {varname} in buffer {buf}
221221getcellwidths() List get character cell width overrides
222222getchangelist([{buf} ]) List list of change list items
223- getchar([expr]) Number or String
223+ getchar([{ expr} ]) Number or String
224224 get one character from the user
225225getcharmod() Number modifiers for the last typed character
226226getcharpos({expr} ) List position of cursor, mark, etc.
227227getcharsearch() Dict last character search
228- getcharstr([expr]) String get one character from the user
228+ getcharstr([{ expr} ]) String get one character from the user
229229getcmdcompltype() String return the type of the current
230230 command-line completion
231231getcmdline() String return the current command-line
@@ -398,7 +398,7 @@ menu_info({name} [, {mode}]) Dict get menu item information
398398min({expr} ) Number minimum value of items in {expr}
399399mkdir({name} [, {flags} [, {prot} ]])
400400 Number create directory {name}
401- mode([expr]) String current editing mode
401+ mode([{ expr} ]) String current editing mode
402402mzeval({expr} ) any evaluate | MzScheme | expression
403403nextnonblank({lnum} ) Number line nr of non-blank line >= {lnum}
404404nr2char({expr} [, {utf8} ]) String single char with ASCII/UTF-8 value {expr}
@@ -699,7 +699,7 @@ test_override({expr}, {val}) none test with Vim internal overrides
699699test_refcount({expr} ) Number get the reference count of {expr}
700700test_setmouse({row} , {col} ) none set the mouse position for testing
701701test_settime({expr} ) none set current time for testing
702- test_srand_seed([seed]) none set seed for testing srand()
702+ test_srand_seed([{ seed} ]) none set seed for testing srand()
703703test_unknown() any unknown value for testing
704704test_void() any void value for testing
705705timer_info([{id} ]) List information about timers
@@ -729,7 +729,7 @@ virtcol({expr} [, {list} [, {winid}])
729729 screen column of cursor or mark
730730virtcol2col({winid} , {lnum} , {col} )
731731 Number byte index of a character on screen
732- visualmode([expr]) String last visual mode used
732+ visualmode([{ expr} ]) String last visual mode used
733733wildmenumode() Number whether 'wildmenu' mode is active
734734win_execute({id} , {command} [, {silent} ])
735735 String execute {command} in window {id}
@@ -3455,16 +3455,16 @@ getchangelist([{buf}]) *getchangelist()*
34553455 Can also be used as a | method | : >
34563456 GetBufnr()->getchangelist()
34573457
3458- getchar([expr]) *getchar()*
3458+ getchar([{ expr} ]) *getchar()*
34593459 Get a single character from the user or input stream.
3460- If [ expr] is omitted, wait until a character is available.
3461- If [ expr] is 0, only get a character when one is available.
3460+ If { expr} is omitted, wait until a character is available.
3461+ If { expr} is 0, only get a character when one is available.
34623462 Return zero otherwise.
3463- If [ expr] is 1, only check if a character is available, it is
3463+ If { expr} is 1, only check if a character is available, it is
34643464 not consumed. Return zero if no character available.
34653465 If you prefer always getting a string use | getcharstr() | .
34663466
3467- Without [ expr] and when [ expr] is 0 a whole character or
3467+ Without { expr} and when { expr} is 0 a whole character or
34683468 special key is returned. If it is a single character, the
34693469 result is a Number. Use | nr2char() | to convert it to a String.
34703470 Otherwise a String is returned with the encoded character.
@@ -3474,11 +3474,11 @@ getchar([expr]) *getchar()*
34743474 also a String when a modifier (shift, control, alt) was used
34753475 that is not included in the character.
34763476
3477- When [ expr] is 0 and Esc is typed, there will be a short delay
3477+ When { expr} is 0 and Esc is typed, there will be a short delay
34783478 while Vim waits to see if this is the start of an escape
34793479 sequence.
34803480
3481- When [ expr] is 1 only the first byte is returned. For a
3481+ When { expr} is 1 only the first byte is returned. For a
34823482 one-byte character it is the character itself as a number.
34833483 Use nr2char() to convert it to a String.
34843484
@@ -3589,13 +3589,13 @@ getcharsearch() *getcharsearch()*
35893589< Also see | setcharsearch() | .
35903590
35913591
3592- getcharstr([expr]) *getcharstr()*
3592+ getcharstr([{ expr} ]) *getcharstr()*
35933593 Get a single character from the user or input stream as a
35943594 string.
3595- If [ expr] is omitted, wait until a character is available.
3596- If [ expr] is 0 or false, only get a character when one is
3595+ If { expr} is omitted, wait until a character is available.
3596+ If { expr} is 0 or false, only get a character when one is
35973597 available. Return an empty string otherwise.
3598- If [ expr] is 1 or true, only check if a character is
3598+ If { expr} is 1 or true, only check if a character is
35993599 available, it is not consumed. Return an empty string
36003600 if no character is available.
36013601 Otherwise this works like | getchar() | , except that a number
@@ -6648,8 +6648,8 @@ mkdir({name} [, {flags} [, {prot}]])
66486648 GetName()->mkdir()
66496649<
66506650 *mode()*
6651- mode([expr]) Return a string that indicates the current mode.
6652- If [ expr] is supplied and it evaluates to a non-zero Number or
6651+ mode([{ expr} ]) Return a string that indicates the current mode.
6652+ If { expr} is supplied and it evaluates to a non-zero Number or
66536653 a non-empty String (| non-zero-arg | ), then the full mode is
66546654 returned, otherwise only the first letter is returned.
66556655 Also see | state() | .
0 commit comments