1
- *builtin.txt* For Vim version 9.1. Last change: 2024 Nov 01
1
+ *builtin.txt* For Vim version 9.1. Last change: 2024 Nov 10
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -467,9 +467,9 @@ prop_type_get({name} [, {props}])
467
467
prop_type_list([{props} ]) List get list of property types
468
468
pum_getpos() Dict position and size of pum if visible
469
469
pumvisible() Number whether popup menu is visible
470
- py3eval({expr} ) any evaluate | python3 | expression
471
- pyeval({expr} ) any evaluate | Python | expression
472
- pyxeval({expr} ) any evaluate | python_x | expression
470
+ py3eval({expr} [, {locals} ]) any evaluate | python3 | expression
471
+ pyeval({expr} [, {locals} ]) any evaluate | Python | expression
472
+ pyxeval({expr} [, {locals} ]) any evaluate | python_x | expression
473
473
rand([{expr} ]) Number get pseudo-random number
474
474
range({expr} [, {max} [, {stride} ]])
475
475
List items from {expr} to {max}
@@ -5203,7 +5203,7 @@ glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) *glob()*
5203
5203
on {list}
5204
5204
5205
5205
5206
- glob2regpat({string} ) *glob2regpat()*
5206
+ glob2regpat({string} ) *glob2regpat()*
5207
5207
Convert a file pattern, as used by glob(), into a search
5208
5208
pattern. The result can be used to match with a string that
5209
5209
is a file name. E.g. >
@@ -5656,7 +5656,7 @@ iconv({string}, {from}, {to}) *iconv()*
5656
5656
Return type: | String |
5657
5657
5658
5658
5659
- id({item} ) *id()*
5659
+ id({item} ) *id()*
5660
5660
The result is a unique String associated with the {item} and
5661
5661
not with the {item} 's contents. It is only valid while the
5662
5662
{item} exists and is referenced. It is valid only in the
@@ -7081,7 +7081,7 @@ matchbufline({buf}, {pat}, {lnum}, {end}, [, {dict}])
7081
7081
Return type: list<dict<any> > or list<any>
7082
7082
7083
7083
7084
- matchdelete({id} [, {win} ) *matchdelete()* *E802* *E803*
7084
+ matchdelete({id} [, {win} ) *matchdelete()* *E802* *E803*
7085
7085
Deletes a match with ID {id} previously defined by | matchadd() |
7086
7086
or one of the | :match | commands. Returns 0 if successful,
7087
7087
otherwise -1. See example for | matchadd() | . All matches can
@@ -8127,9 +8127,14 @@ pumvisible() *pumvisible()*
8127
8127
Return type: | Number |
8128
8128
8129
8129
8130
- py3eval({expr} ) *py3eval()*
8130
+ py3eval({expr} [, {locals} ]) *py3eval()*
8131
8131
Evaluate Python expression {expr} and return its result
8132
8132
converted to Vim data structures.
8133
+ If a {locals} | Dictionary | is given, it defines set of local
8134
+ variables available in the expression. The keys are variable
8135
+ names and the values are the variable values. | Dictionary | and
8136
+ | List | values are referenced, and may be updated by the
8137
+ expression (as if | python-bindeval | was used).
8133
8138
Numbers and strings are returned as they are (strings are
8134
8139
copied though, Unicode strings are additionally converted to
8135
8140
'encoding' ).
@@ -8141,15 +8146,17 @@ py3eval({expr}) *py3eval()*
8141
8146
8142
8147
Can also be used as a | method | : >
8143
8148
GetExpr()->py3eval()
8149
+ 'b",".join(l)'->py3eval({'l': ['a', 'b', 'c']})
8144
8150
<
8145
8151
Return type: any, depending on {expr}
8146
8152
8147
8153
{only available when compiled with the | +python3 | feature}
8148
8154
8149
8155
*E858* *E859*
8150
- pyeval({expr} ) *pyeval()*
8156
+ pyeval({expr} [, {locals} ]) *pyeval()*
8151
8157
Evaluate Python expression {expr} and return its result
8152
8158
converted to Vim data structures.
8159
+ For {locals} see | py3eval() | .
8153
8160
Numbers and strings are returned as they are (strings are
8154
8161
copied though).
8155
8162
Lists are represented as Vim | List | type.
@@ -8165,9 +8172,10 @@ pyeval({expr}) *pyeval()*
8165
8172
8166
8173
{only available when compiled with the | +python | feature}
8167
8174
8168
- pyxeval({expr} ) *pyxeval()*
8175
+ pyxeval({expr} [, {locals} ]) *pyxeval()*
8169
8176
Evaluate Python expression {expr} and return its result
8170
8177
converted to Vim data structures.
8178
+ For {locals} see | py3eval() | .
8171
8179
Uses Python 2 or 3, see | python_x | and 'pyxversion' .
8172
8180
See also: | pyeval() | , | py3eval() |
8173
8181
0 commit comments