1- *eval.txt* For Vim version 8.2. Last change: 2020 May 25
1+ *eval.txt* For Vim version 8.2. Last change: 2020 Jun 03
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2358,7 +2358,6 @@ assert_notmatch({pat}, {text} [, {msg}])
23582358 Number assert {pat} not matches {text}
23592359assert_report({msg}) Number report a test failure
23602360assert_true({actual} [, {msg}]) Number assert {actual} is true
2361- asin({expr}) Float arc sine of {expr}
23622361atan({expr}) Float arc tangent of {expr}
23632362atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
23642363balloon_gettext() String current text in the balloon
@@ -2449,12 +2448,12 @@ executable({expr}) Number 1 if executable {expr} exists
24492448execute({command}) String execute {command} and get the output
24502449exepath({expr}) String full path of the command {expr}
24512450exists({expr}) Number |TRUE| if {expr} exists
2452- extend({expr1}, {expr2} [, {expr3}])
2453- List/Dict insert items of {expr2} into {expr1}
24542451exp({expr}) Float exponential of {expr}
24552452expand({expr} [, {nosuf} [, {list}]])
24562453 any expand special keywords in {expr}
24572454expandcmd({expr}) String expand {expr} like with `:edit`
2455+ extend({expr1}, {expr2} [, {expr3}])
2456+ List/Dict insert items of {expr2} into {expr1}
24582457feedkeys({string} [, {mode}]) Number add key sequence to typeahead buffer
24592458filereadable({file}) Number |TRUE| if {file} is a readable file
24602459filewritable({file}) Number |TRUE| if {file} is a writable file
@@ -2549,8 +2548,8 @@ histadd({history}, {item}) Number add an item to a history
25492548histdel({history} [, {item}]) Number remove an item from a history
25502549histget({history} [, {index}]) String get the item {index} from a history
25512550histnr({history}) Number highest index of a history
2552- hlexists({name}) Number |TRUE| if highlight group {name} exists
25532551hlID({name}) Number syntax ID of highlight group {name}
2552+ hlexists({name}) Number |TRUE| if highlight group {name} exists
25542553hostname() String name of the machine Vim is running on
25552554iconv({expr}, {from}, {to}) String convert encoding of {expr}
25562555indent({lnum}) Number indent of line {lnum}
@@ -2650,16 +2649,16 @@ popup_findpreview() Number get window ID of preview popup window
26502649popup_getoptions({id}) Dict get options of popup window {id}
26512650popup_getpos({id}) Dict get position of popup window {id}
26522651popup_hide({id}) none hide popup menu {id}
2653- popup_list() List get a list of window IDs of al popups
2652+ popup_list() List get a list of window IDs of all popups
26542653popup_locate({row}, {col}) Number get window ID of popup at position
26552654popup_menu({what}, {options}) Number create a popup window used as a menu
26562655popup_move({id}, {options}) none set position of popup window {id}
26572656popup_notification({what}, {options})
26582657 Number create a notification popup window
2659- popup_show({id}) none unhide popup window {id}
26602658popup_setoptions({id}, {options})
26612659 none set options for popup window {id}
26622660popup_settext({id}, {text}) none set the text of popup window {id}
2661+ popup_show({id}) none unhide popup window {id}
26632662pow({x}, {y}) Float {x} to the power of {y}
26642663prevnonblank({lnum}) Number line nr of non-blank line <= {lnum}
26652664printf({fmt}, {expr1}...) String format text
@@ -2684,8 +2683,8 @@ prop_type_get([{name} [, {props}]])
26842683prop_type_list([{props}]) List get list of property types
26852684pum_getpos() Dict position and size of pum if visible
26862685pumvisible() Number whether popup menu is visible
2687- pyeval({expr}) any evaluate |Python| expression
26882686py3eval({expr}) any evaluate |python3| expression
2687+ pyeval({expr}) any evaluate |Python| expression
26892688pyxeval({expr}) any evaluate |python_x| expression
26902689rand([{expr}]) Number get pseudo-random number
26912690range({expr} [, {max} [, {stride}]])
@@ -2812,9 +2811,9 @@ str2list({expr} [, {utf8}]) List convert each character of {expr} to
28122811 ASCII/UTF8 value
28132812str2nr({expr} [, {base} [, {quoted}]])
28142813 Number convert String to Number
2815- strchars({expr} [, {skipcc}]) Number character length of the String {expr}
28162814strcharpart({str}, {start} [, {len}])
28172815 String {len} characters of {str} at {start}
2816+ strchars({expr} [, {skipcc}]) Number character length of the String {expr}
28182817strdisplaywidth({expr} [, {col}]) Number display length of the String {expr}
28192818strftime({format} [, {time}]) String format time with a specified format
28202819strgetchar({str}, {index}) Number get char {index} from {str}
@@ -2847,8 +2846,8 @@ systemlist({expr} [, {input}]) List output of shell command/filter {expr}
28472846tabpagebuflist([{arg}]) List list of buffer numbers in tab page
28482847tabpagenr([{arg}]) Number number of current or last tab page
28492848tabpagewinnr({tabarg} [, {arg}]) Number number of current window in tab page
2850- taglist({expr} [, {filename}]) List list of tags matching {expr}
28512849tagfiles() List tags files used
2850+ taglist({expr} [, {filename}]) List list of tags matching {expr}
28522851tan({expr}) Float tangent of {expr}
28532852tanh({expr}) Float hyperbolic tangent of {expr}
28542853tempname() String name for a temporary file
@@ -2872,9 +2871,9 @@ term_gettty({buf}, [{input}]) String get the tty name of a terminal
28722871term_list() List get the list of terminal buffers
28732872term_scrape({buf}, {row}) List get row of a terminal screen
28742873term_sendkeys({buf}, {keys}) none send keystrokes to a terminal
2875- term_setapi({buf}, {expr}) none set |terminal-api| function name prefix
28762874term_setansicolors({buf}, {colors})
28772875 none set ANSI palette in GUI color mode
2876+ term_setapi({buf}, {expr}) none set |terminal-api| function name prefix
28782877term_setkill({buf}, {how}) none set signal to stop job in terminal
28792878term_setrestore({buf}, {command}) none set command to restore terminal
28802879term_setsize({buf}, {rows}, {cols})
@@ -2897,16 +2896,16 @@ test_null_job() Job null value for testing
28972896test_null_list() List null value for testing
28982897test_null_partial() Funcref null value for testing
28992898test_null_string() String null value for testing
2900- test_unknown() any unknown value for testing
2901- test_void() any void value for testing
29022899test_option_not_set({name}) none reset flag indicating option was set
29032900test_override({expr}, {val}) none test with Vim internal overrides
29042901test_refcount({expr}) Number get the reference count of {expr}
29052902test_scrollbar({which}, {value}, {dragging})
29062903 none scroll in the GUI for testing
29072904test_setmouse({row}, {col}) none set the mouse position for testing
2908- test_srand_seed([seed]) none set seed for testing srand()
29092905test_settime({expr}) none set current time for testing
2906+ test_srand_seed([seed]) none set seed for testing srand()
2907+ test_unknown() any unknown value for testing
2908+ test_void() any void value for testing
29102909timer_info([{id}]) List information about timers
29112910timer_pause({id}, {pause}) none pause or unpause a timer
29122911timer_start({time}, {callback} [, {options}])
@@ -4409,7 +4408,7 @@ feedkeys({string} [, {mode}]) *feedkeys()*
44094408 script continues.
44104409 Note that if you manage to call feedkeys() while
44114410 executing commands, thus calling it recursively, then
4412- all typehead will be consumed by the last call.
4411+ all typeahead will be consumed by the last call.
44134412 '!' When used with 'x' will not end Insert mode. Can be
44144413 used in a test when a timer is set to exit Insert mode
44154414 a little later. Useful for testing CursorHoldI.
@@ -4445,7 +4444,7 @@ filewritable({file}) *filewritable()*
44454444 directory, and we can write to it, the result is 2.
44464445
44474446 Can also be used as a |method|: >
4448- GetName()->filewriteable ()
4447+ GetName()->filewritable ()
44494448
44504449
44514450filter({expr1}, {expr2}) *filter()*
@@ -5446,7 +5445,7 @@ getmousepos() *getmousepos()*
54465445 "screenrow" and "screencol" are valid, the others are zero.
54475446
54485447 When on the status line below a window or the vertical
5449- separater right of a window, the "line" and "column" values
5448+ separator right of a window, the "line" and "column" values
54505449 are zero.
54515450
54525451 When the position is after the text then "column" is the
@@ -6962,7 +6961,7 @@ mapset({mode}, {abbr}, {dict}) *mapset()*
69626961 call mapset('n', 0, save_map)
69636962< Note that if you are going to replace a map in several modes,
69646963 e.g. with `:map!`, you need to save the mapping for all of
6965- them, since they can differe .
6964+ them, since they can differ .
69666965
69676966
69686967match({expr}, {pat} [, {start} [, {count}]]) *match()*
@@ -8559,8 +8558,10 @@ searchcount([{options}]) *searchcount()*
85598558 recompute |Boolean| if |TRUE|, recompute the count
85608559 like |n| or |N| was executed.
85618560 otherwise returns the last
8562- result by |n|, |N|, or this
8563- function is returned.
8561+ computed result (when |n| or
8562+ |N| was used when "S" is not
8563+ in 'shortmess', or this
8564+ function was called).
85648565 (default: |TRUE|)
85658566 pattern |String| recompute if this was given
85668567 and different with |@/|.
0 commit comments