1- *eval.txt* For Vim version 8.2. Last change: 2021 Jun 07
1+ *eval.txt* For Vim version 8.2. Last change: 2021 Jun 23
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3034,6 +3034,8 @@ test_feedinput({string}) none add key sequence to input buffer
30343034test_garbagecollect_now() none free memory right now for testing
30353035test_garbagecollect_soon() none free memory soon for testing
30363036test_getvalue({string}) any get value of an internal variable
3037+ test_gui_drop_files({list}, {row}, {col}, {mods})
3038+ none drop a list of files in a window
30373039test_gui_mouse_event({button}, {row}, {col}, {repeated}, {mods})
30383040 none add a mouse event to the input buffer
30393041test_ignore_error({expr}) none ignore a specific error
@@ -4872,6 +4874,8 @@ foldclosed({lnum}) *foldclosed()*
48724874 The result is a Number. If the line {lnum} is in a closed
48734875 fold, the result is the number of the first line in that fold.
48744876 If the line {lnum} is not in a closed fold, -1 is returned.
4877+ {lnum} is used like with |getline()|. Thus "." is the current
4878+ line, "'m" mark m, etc.
48754879
48764880 Can also be used as a |method|: >
48774881 GetLnum()->foldclosed()
@@ -4880,6 +4884,8 @@ foldclosedend({lnum}) *foldclosedend()*
48804884 The result is a Number. If the line {lnum} is in a closed
48814885 fold, the result is the number of the last line in that fold.
48824886 If the line {lnum} is not in a closed fold, -1 is returned.
4887+ {lnum} is used like with |getline()|. Thus "." is the current
4888+ line, "'m" mark m, etc.
48834889
48844890 Can also be used as a |method|: >
48854891 GetLnum()->foldclosedend()
@@ -4893,6 +4899,8 @@ foldlevel({lnum}) *foldlevel()*
48934899 returned for lines where folds are still to be updated and the
48944900 foldlevel is unknown. As a special case the level of the
48954901 previous line is usually available.
4902+ {lnum} is used like with |getline()|. Thus "." is the current
4903+ line, "'m" mark m, etc.
48964904
48974905 Can also be used as a |method|: >
48984906 GetLnum()->foldlevel()
@@ -5768,6 +5776,8 @@ getmatches([{win}]) *getmatches()*
57685776 |getmatches()| is useful in combination with |setmatches()|,
57695777 as |setmatches()| can restore a list of matches saved by
57705778 |getmatches()|.
5779+ If {win} is specified, use the window with this number or
5780+ window ID instead of the current window.
57715781 Example: >
57725782 :echo getmatches()
57735783< [{'group': 'MyGroup1', 'pattern': 'TODO',
@@ -5868,8 +5878,10 @@ getqflist([{what}]) *getqflist()*
58685878 valid |TRUE|: recognized error message
58695879
58705880 When there is no error list or it's empty, an empty list is
5871- returned. Quickfix list entries with non-existing buffer
5872- number are returned with "bufnr" set to zero.
5881+ returned. Quickfix list entries with a non-existing buffer
5882+ number are returned with "bufnr" set to zero (Note: some
5883+ functions accept buffer number zero for the alternate buffer,
5884+ you may need to explicitly check for zero).
58735885
58745886 Useful application: Find pattern matches in multiple files and
58755887 do something with them: >
@@ -6013,12 +6025,12 @@ getregtype([{regname}]) *getregtype()*
60136025 Can also be used as a |method|: >
60146026 GetRegname()->getregtype()
60156027
6016- gettabinfo([{arg }]) *gettabinfo()*
6017- If {arg } is not specified, then information about all the tab
6018- pages is returned as a |List|. Each List item is a |Dictionary|.
6019- Otherwise, {arg } specifies the tab page number and information
6020- about that one is returned. If the tab page does not exist an
6021- empty List is returned.
6028+ gettabinfo([{tabnr }]) *gettabinfo()*
6029+ If {tabnr } is not specified, then information about all the
6030+ tab pages is returned as a |List|. Each List item is a
6031+ |Dictionary|. Otherwise, {tabnr } specifies the tab page
6032+ number and information about that one is returned. If the tab
6033+ page does not exist an empty List is returned.
60226034
60236035 Each List item is a |Dictionary| with the following entries:
60246036 tabnr tab page number.
@@ -6071,11 +6083,11 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
60716083< Can also be used as a |method|: >
60726084 GetTabnr()->gettabwinvar(winnr, varname)
60736085
6074- gettagstack([{nr }]) *gettagstack()*
6075- The result is a Dict, which is the tag stack of window {nr }.
6076- {nr } can be the window number or the |window-ID|.
6077- When {nr } is not specified, the current window is used.
6078- When window {nr } doesn't exist, an empty Dict is returned.
6086+ gettagstack([{winnr }]) *gettagstack()*
6087+ The result is a Dict, which is the tag stack of window {winnr }.
6088+ {winnr } can be the window number or the |window-ID|.
6089+ When {winnr } is not specified, the current window is used.
6090+ When window {winnr } doesn't exist, an empty Dict is returned.
60796091
60806092 The returned dictionary contains the following entries:
60816093 curidx Current index in the stack. When at
0 commit comments