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
@@ -4862,6 +4862,8 @@ foldclosed({lnum}) *foldclosed()*
48624862 The result is a Number. If the line {lnum} is in a closed
48634863 fold, the result is the number of the first line in that fold.
48644864 If the line {lnum} is not in a closed fold, -1 is returned.
4865+ {lnum} is used like with |getline()|. Thus "." is the current
4866+ line, "'m" mark m, etc.
48654867
48664868 Can also be used as a |method|: >
48674869 GetLnum()->foldclosed()
@@ -4870,6 +4872,8 @@ foldclosedend({lnum}) *foldclosedend()*
48704872 The result is a Number. If the line {lnum} is in a closed
48714873 fold, the result is the number of the last line in that fold.
48724874 If the line {lnum} is not in a closed fold, -1 is returned.
4875+ {lnum} is used like with |getline()|. Thus "." is the current
4876+ line, "'m" mark m, etc.
48734877
48744878 Can also be used as a |method|: >
48754879 GetLnum()->foldclosedend()
@@ -4883,6 +4887,8 @@ foldlevel({lnum}) *foldlevel()*
48834887 returned for lines where folds are still to be updated and the
48844888 foldlevel is unknown. As a special case the level of the
48854889 previous line is usually available.
4890+ {lnum} is used like with |getline()|. Thus "." is the current
4891+ line, "'m" mark m, etc.
48864892
48874893 Can also be used as a |method|: >
48884894 GetLnum()->foldlevel()
@@ -5758,6 +5764,8 @@ getmatches([{win}]) *getmatches()*
57585764 |getmatches()| is useful in combination with |setmatches()|,
57595765 as |setmatches()| can restore a list of matches saved by
57605766 |getmatches()|.
5767+ If {win} is specified, use the window with this number or
5768+ window ID instead of the current window.
57615769 Example: >
57625770 :echo getmatches()
57635771< [{'group': 'MyGroup1', 'pattern': 'TODO',
@@ -5858,8 +5866,10 @@ getqflist([{what}]) *getqflist()*
58585866 valid |TRUE|: recognized error message
58595867
58605868 When there is no error list or it's empty, an empty list is
5861- returned. Quickfix list entries with non-existing buffer
5862- number are returned with "bufnr" set to zero.
5869+ returned. Quickfix list entries with a non-existing buffer
5870+ number are returned with "bufnr" set to zero (Note: some
5871+ functions accept buffer number zero for the alternate buffer,
5872+ you may need to explicitly check for zero).
58635873
58645874 Useful application: Find pattern matches in multiple files and
58655875 do something with them: >
@@ -6003,12 +6013,12 @@ getregtype([{regname}]) *getregtype()*
60036013 Can also be used as a |method|: >
60046014 GetRegname()->getregtype()
60056015
6006- gettabinfo([{arg }]) *gettabinfo()*
6007- If {arg } is not specified, then information about all the tab
6008- pages is returned as a |List|. Each List item is a |Dictionary|.
6009- Otherwise, {arg } specifies the tab page number and information
6010- about that one is returned. If the tab page does not exist an
6011- empty List is returned.
6016+ gettabinfo([{tabnr }]) *gettabinfo()*
6017+ If {tabnr } is not specified, then information about all the
6018+ tab pages is returned as a |List|. Each List item is a
6019+ |Dictionary|. Otherwise, {tabnr } specifies the tab page
6020+ number and information about that one is returned. If the tab
6021+ page does not exist an empty List is returned.
60126022
60136023 Each List item is a |Dictionary| with the following entries:
60146024 tabnr tab page number.
@@ -6061,11 +6071,11 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
60616071< Can also be used as a |method|: >
60626072 GetTabnr()->gettabwinvar(winnr, varname)
60636073
6064- gettagstack([{nr }]) *gettagstack()*
6065- The result is a Dict, which is the tag stack of window {nr }.
6066- {nr } can be the window number or the |window-ID|.
6067- When {nr } is not specified, the current window is used.
6068- When window {nr } doesn't exist, an empty Dict is returned.
6074+ gettagstack([{winnr }]) *gettagstack()*
6075+ The result is a Dict, which is the tag stack of window {winnr }.
6076+ {winnr } can be the window number or the |window-ID|.
6077+ When {winnr } is not specified, the current window is used.
6078+ When window {winnr } doesn't exist, an empty Dict is returned.
60696079
60706080 The returned dictionary contains the following entries:
60716081 curidx Current index in the stack. When at
0 commit comments