@@ -2196,7 +2196,7 @@ gettabvar({nr}, {varname} [, {def}])
2196
2196
any variable {varname} in tab {nr} or {def}
2197
2197
gettabwinvar({tabnr} , {winnr} , {name} [, {def} ])
2198
2198
any {name} in {winnr} in tab page {tabnr}
2199
- getwininfo([{winid} ]) List list of windows
2199
+ getwininfo([{winid} ]) List list of info about each window
2200
2200
getwinpos([{timeout} ]) List X and Y coord in pixels of the Vim window
2201
2201
getwinposx() Number X coord in pixels of the Vim window
2202
2202
getwinposy() Number Y coord in pixels of the Vim window
@@ -4936,6 +4936,41 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
4936
4936
:let list_is_on = gettabwinvar(1, 2, '&list')
4937
4937
:echo "myvar = " . gettabwinvar(3, 1, 'myvar')
4938
4938
<
4939
+ getwininfo([{winid} ]) *getwininfo()*
4940
+ Returns information about windows as a List with Dictionaries.
4941
+
4942
+ If {winid} is given Information about the window with that ID
4943
+ is returned. If the window does not exist the result is an
4944
+ empty list.
4945
+
4946
+ Without {winid} information about all the windows in all the
4947
+ tab pages is returned.
4948
+
4949
+ Each List item is a Dictionary with the following entries:
4950
+ bufnr number of buffer in the window
4951
+ height window height (excluding winbar)
4952
+ winbar 1 if the window has a toolbar, 0
4953
+ otherwise
4954
+ loclist 1 if showing a location list
4955
+ {only with the +quickfix feature}
4956
+ quickfix 1 if quickfix or location list window
4957
+ {only with the +quickfix feature}
4958
+ terminal 1 if a terminal window
4959
+ {only with the +terminal feature}
4960
+ tabnr tab page number
4961
+ variables a reference to the dictionary with
4962
+ window-local variables
4963
+ width window width
4964
+ wincol leftmost screen column of the window,
4965
+ col from | win_screenpos() |
4966
+ winid | window-ID |
4967
+ winnr window number
4968
+ winrow topmost screen column of the window,
4969
+ row from | win_screenpos() |
4970
+
4971
+ To obtain all window-local variables use: >
4972
+ gettabwinvar({tabnr}, {winnr}, '&')
4973
+
4939
4974
getwinpos([{timeout} ]) *getwinpos()*
4940
4975
The result is a list with two numbers, the result of
4941
4976
getwinposx() and getwinposy() combined:
@@ -4969,39 +5004,6 @@ getwinposy() The result is a Number, which is the Y coordinate in pixels of
4969
5004
The result will be -1 if the information is not available.
4970
5005
The value can be used with `:winpos ` .
4971
5006
4972
- getwininfo([{winid} ]) *getwininfo()*
4973
- Returns information about windows as a List with Dictionaries.
4974
-
4975
- If {winid} is given Information about the window with that ID
4976
- is returned. If the window does not exist the result is an
4977
- empty list.
4978
-
4979
- Without {winid} information about all the windows in all the
4980
- tab pages is returned.
4981
-
4982
- Each List item is a Dictionary with the following entries:
4983
- bufnr number of buffer in the window
4984
- height window height (excluding winbar)
4985
- winbar 1 if the window has a toolbar, 0
4986
- otherwise
4987
- loclist 1 if showing a location list
4988
- {only with the +quickfix feature}
4989
- quickfix 1 if quickfix or location list window
4990
- {only with the +quickfix feature}
4991
- terminal 1 if a terminal window
4992
- {only with the +terminal feature}
4993
- tabnr tab page number
4994
- variables a reference to the dictionary with
4995
- window-local variables
4996
- width window width
4997
- wincol leftmost screen column of the window
4998
- winid | window-ID |
4999
- winnr window number
5000
- winrow topmost screen column of the window
5001
-
5002
- To obtain all window-local variables use: >
5003
- gettabwinvar({tabnr}, {winnr}, '&')
5004
-
5005
5007
getwinvar({winnr} , {varname} [, {def} ]) *getwinvar()*
5006
5008
Like | gettabwinvar() | for the current tabpage.
5007
5009
Examples: >
@@ -9049,7 +9051,7 @@ win_id2win({expr}) *win_id2win()*
9049
9051
win_screenpos({nr} ) *win_screenpos()*
9050
9052
Return the screen position of window {nr} as a list with two
9051
9053
numbers: [row, col]. The first window always has position
9052
- [1, 1].
9054
+ [1, 1], unless there is a tabline, then it is [2, 1] .
9053
9055
{nr} can be the window number or the | window-ID | .
9054
9056
Return [0, 0] if the window cannot be found in the current
9055
9057
tabpage.
0 commit comments