1- *eval.txt* For Vim version 8.0. Last change: 2017 Jan 14
1+ *eval.txt* For Vim version 8.0. Last change: 2017 Jan 28
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2222,8 +2222,8 @@ matchstr({expr}, {pat}[, {start}[, {count}]])
22222222 String {count} 'th match of {pat} in {expr}
22232223matchstrpos({expr} , {pat} [, {start} [, {count} ]])
22242224 List {count} 'th match of {pat} in {expr}
2225- max({list } ) Number maximum value of items in {list }
2226- min({list } ) Number minimum value of items in {list }
2225+ max({expr } ) Number maximum value of items in {expr }
2226+ min({expr } ) Number minimum value of items in {expr }
22272227mkdir({name} [, {path} [, {prot} ]])
22282228 Number create directory {name}
22292229mode([expr]) String current editing mode
@@ -2239,6 +2239,7 @@ printf({fmt}, {expr1}...) String format text
22392239pumvisible() Number whether popup menu is visible
22402240pyeval({expr} ) any evaluate | Python | expression
22412241py3eval({expr} ) any evaluate | python3 | expression
2242+ pyxeval({expr} ) any evaluate | python_x | expression
22422243range({expr} [, {max} [, {stride} ]])
22432244 List items from {expr} to {max}
22442245readfile({fname} [, {binary} [, {max} ]])
@@ -4171,6 +4172,10 @@ getchar([expr]) *getchar()*
41714172 exe "normal " . v:mouse_col . "|"
41724173 endif
41734174<
4175+ When using bracketed paste only the first character is
4176+ returned, the rest of the pasted text is dropped.
4177+ | xterm-bracketed-paste | .
4178+
41744179 There is no prompt, you will somehow have to make clear to the
41754180 user that a character has to be typed.
41764181 There is no mapping for the character.
@@ -5796,16 +5801,20 @@ matchstrpos({expr}, {pat}[, {start}[, {count}]]) *matchstrpos()*
57965801 The type isn't changed, it's not necessarily a String.
57975802
57985803 *max()*
5799- max({list} ) Return the maximum value of all items in {list} .
5800- If {list} is not a list or one of the items in {list} cannot
5801- be used as a Number this results in an error.
5802- An empty | List | results in zero.
5804+ max({expr} ) Return the maximum value of all items in {expr} .
5805+ {expr} can be a list or a dictionary. For a dictionary,
5806+ it returns the maximum of all values in the dictionary.
5807+ If {expr} is neither a list nor a dictionary, or one of the
5808+ items in {expr} cannot be used as a Number this results in
5809+ an error. An empty | List | or | Dictionary | results in zero.
58035810
58045811 *min()*
5805- min({list} ) Return the minimum value of all items in {list} .
5806- If {list} is not a list or one of the items in {list} cannot
5807- be used as a Number this results in an error.
5808- An empty | List | results in zero.
5812+ min({expr} ) Return the minimum value of all items in {expr} .
5813+ {expr} can be a list or a dictionary. For a dictionary,
5814+ it returns the minimum of all values in the dictionary.
5815+ If {expr} is neither a list nor a dictionary, or one of the
5816+ items in {expr} cannot be used as a Number this results in
5817+ an error. An empty | List | or | Dictionary | results in zero.
58095818
58105819 *mkdir()* *E739*
58115820mkdir({name} [, {path} [, {prot} ]])
@@ -6163,6 +6172,14 @@ pyeval({expr}) *pyeval()*
61636172 non-string keys result in error.
61646173 {only available when compiled with the | +python | feature}
61656174
6175+ pyxeval({expr} ) *pyxeval()*
6176+ Evaluate Python expression {expr} and return its result
6177+ converted to Vim data structures.
6178+ Uses Python 2 or 3, see | python_x | and 'pyxversion' .
6179+ See also: | pyeval() | , | py3eval() |
6180+ {only available when compiled with the | +python | or the
6181+ | +python3 | feature}
6182+
61666183 *E726* *E727*
61676184range({expr} [, {max} [, {stride} ]]) *range()*
61686185 Returns a | List | with Numbers:
@@ -6789,10 +6806,12 @@ setpos({expr}, {list})
67896806 [bufnum, lnum, col, off, curswant]
67906807
67916808 "bufnum" is the buffer number. Zero can be used for the
6792- current buffer. Setting the cursor is only possible for
6793- the current buffer. To set a mark in another buffer you can
6794- use the | bufnr() | function to turn a file name into a buffer
6795- number.
6809+ current buffer. When setting an uppercase mark "bufnum" is
6810+ used for the mark position. For other marks it specifies the
6811+ buffer to set the mark in. You can use the | bufnr() | function
6812+ to turn a file name into a buffer number.
6813+ For setting the cursor and the ' mark "bufnum" is ignored,
6814+ since these are associated with a window, not a buffer.
67966815 Does not change the jumplist.
67976816
67986817 "lnum" and "col" are the position in the buffer. The first
@@ -8135,7 +8154,7 @@ winnr([{arg}]) The result is a Number, which is the number of the current
81358154 is returned.
81368155 The number can be used with | CTRL-W_w | and ":wincmd w"
81378156 | :wincmd | .
8138- Also see | tabpagewinnr() | .
8157+ Also see | tabpagewinnr() | and | win_getid() | .
81398158
81408159 *winrestcmd()*
81418160winrestcmd() Returns a sequence of | :resize | commands that should restore
@@ -8405,6 +8424,7 @@ printer Compiled with |:hardcopy| support.
84058424profile Compiled with | :profile | support.
84068425python Compiled with Python 2.x interface. | has-python |
84078426python3 Compiled with Python 3.x interface. | has-python |
8427+ pythonx Compiled with | python_x | interface. | has-pythonx |
84088428qnx QNX version of Vim.
84098429quickfix Compiled with | quickfix | support.
84108430reltime Compiled with | reltime() | support.
0 commit comments