1- *eval.txt* For Vim version 8.2. Last change: 2020 Feb 03
1+ *eval.txt* For Vim version 8.2. Last change: 2020 Feb 14
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2426,6 +2426,7 @@ deletebufline({expr}, {first} [, {last}])
24262426did_filetype() Number | TRUE | if FileType autocmd event used
24272427diff_filler({lnum} ) Number diff filler lines about {lnum}
24282428diff_hlID({lnum} , {col} ) Number diff highlighting at {lnum} /{col}
2429+ echoraw({expr} ) none output {expr} as-is
24292430empty({expr} ) Number | TRUE | if {expr} is empty
24302431environ() Dict return environment variables
24312432escape({string} , {chars} ) String escape {chars} in {string} with '\'
@@ -2860,7 +2861,6 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated
28602861test_alloc_fail({id} , {countdown} , {repeat} )
28612862 none make memory allocation fail
28622863test_autochdir() none enable 'autochdir' during startup
2863- test_clear_search_pat() none clears the last used search pattern
28642864test_feedinput({string} ) none add key sequence to input buffer
28652865test_garbagecollect_now() none free memory right now for testing
28662866test_garbagecollect_soon() none free memory soon for testing
@@ -2879,6 +2879,7 @@ test_refcount({expr}) Number get the reference count of {expr}
28792879test_scrollbar({which} , {value} , {dragging} )
28802880 none scroll in the GUI for testing
28812881test_setmouse({row} , {col} ) none set the mouse position for testing
2882+ test_srand_seed([seed]) none set seed for testing srand()
28822883test_settime({expr} ) none set current time for testing
28832884timer_info([{id} ]) List information about timers
28842885timer_pause({id} , {pause} ) none pause or unpause a timer
@@ -2911,6 +2912,7 @@ win_id2win({expr}) Number get window nr from window ID
29112912win_screenpos({nr} ) List get screen position of window {nr}
29122913win_splitmove({nr} , {target} [, {options} ])
29132914 Number move window {nr} to split of {target}
2915+ win_type([{nr} ]) String type of window {nr}
29142916winbufnr({nr} ) Number buffer number of window {nr}
29152917wincol() Number window column of the cursor
29162918winheight({nr} ) Number height of window {nr}
@@ -3956,6 +3958,17 @@ diff_hlID({lnum}, {col}) *diff_hlID()*
39563958 Can also be used as a | method | : >
39573959 GetLnum()->diff_hlID(col)
39583960
3961+
3962+ echoraw({expr} ) *echoraw()*
3963+ Output {expr} as-is, including unprintable characters. This
3964+ can be used to output a terminal code. For example, to disable
3965+ modifyOtherKeys: >
3966+ call echoraw(&t_TE)
3967+ < and to enable it again: >
3968+ call echoraw(&t_TI)
3969+ < Use with care, you can mess up the terminal this way.
3970+
3971+
39593972empty({expr} ) *empty()*
39603973 Return the Number 1 if {expr} is empty, zero otherwise.
39613974 - A | List | or | Dictionary | is empty when it does not have any
@@ -10340,6 +10353,23 @@ win_getid([{win} [, {tab}]]) *win_getid()*
1034010353 Can also be used as a | method | : >
1034110354 GetWinnr()->win_getid()
1034210355
10356+
10357+ win_gettype([{nr} ]) *win_gettype()*
10358+ Return the type of the window:
10359+ "popup" popup window | popup |
10360+ "command" command-line window | cmdwin |
10361+ (empty) normal window
10362+ "unknown" window {nr} not found
10363+
10364+ When {nr} is omitted return the type of the current window.
10365+ When {nr} is given return the type of this window by number or
10366+ | window-ID | .
10367+
10368+ Also see the 'buftype' option. When running a terminal in a
10369+ popup window then 'buftype' is "terminal" and win_gettype()
10370+ returns "popup".
10371+
10372+
1034310373win_gotoid({expr} ) *win_gotoid()*
1034410374 Go to window with ID {expr} . This may also change the current
1034510375 tabpage.
@@ -10397,6 +10427,7 @@ win_splitmove({nr}, {target} [, {options}]) *win_splitmove()*
1039710427 Can also be used as a | method | : >
1039810428 GetWinid()->win_splitmove(target)
1039910429<
10430+
1040010431 *winbufnr()*
1040110432winbufnr({nr} ) The result is a Number, which is the number of the buffer
1040210433 associated with window {nr} . {nr} can be the window number or
0 commit comments