@@ -2196,7 +2196,7 @@ gettabvar({nr}, {varname} [, {def}])
21962196 any variable {varname} in tab {nr} or {def}
21972197gettabwinvar({tabnr} , {winnr} , {name} [, {def} ])
21982198 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
22002200getwinpos([{timeout} ]) List X and Y coord in pixels of the Vim window
22012201getwinposx() Number X coord in pixels of the Vim window
22022202getwinposy() Number Y coord in pixels of the Vim window
@@ -4936,6 +4936,41 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
49364936 :let list_is_on = gettabwinvar(1, 2, '&list')
49374937 :echo "myvar = " . gettabwinvar(3, 1, 'myvar')
49384938<
4939+ To obtain all window-local variables use: >
4940+ gettabwinvar({tabnr}, {winnr}, '&')
4941+
4942+ getwininfo([{winid} ]) *getwininfo()*
4943+ Returns information about windows as a List with Dictionaries.
4944+
4945+ If {winid} is given Information about the window with that ID
4946+ is returned. If the window does not exist the result is an
4947+ empty list.
4948+
4949+ Without {winid} information about all the windows in all the
4950+ tab pages is returned.
4951+
4952+ Each List item is a Dictionary with the following entries:
4953+ bufnr number of buffer in the window
4954+ height window height (excluding winbar)
4955+ loclist 1 if showing a location list
4956+ {only with the +quickfix feature}
4957+ quickfix 1 if quickfix or location list window
4958+ {only with the +quickfix feature}
4959+ terminal 1 if a terminal window
4960+ {only with the +terminal feature}
4961+ tabnr tab page number
4962+ variables a reference to the dictionary with
4963+ window-local variables
4964+ width window width
4965+ winbar 1 if the window has a toolbar, 0
4966+ otherwise
4967+ wincol leftmost screen column of the window,
4968+ col from | win_screenpos() |
4969+ winid | window-ID |
4970+ winnr window number
4971+ winrow topmost screen column of the window,
4972+ row from | win_screenpos() |
4973+
49394974getwinpos([{timeout} ]) *getwinpos()*
49404975 The result is a list with two numbers, the result of
49414976 getwinposx() and getwinposy() combined:
@@ -4969,37 +5004,6 @@ getwinposy() The result is a Number, which is the Y coordinate in pixels of
49695004 The result will be -1 if the information is not available.
49705005 The value can be used with `:winpos ` .
49715006
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- winid | window-ID |
4998- winnr window number
4999-
5000- To obtain all window-local variables use: >
5001- gettabwinvar({tabnr}, {winnr}, '&')
5002-
50035007getwinvar({winnr} , {varname} [, {def} ]) *getwinvar()*
50045008 Like | gettabwinvar() | for the current tabpage.
50055009 Examples: >
@@ -9047,7 +9051,7 @@ win_id2win({expr}) *win_id2win()*
90479051win_screenpos({nr} ) *win_screenpos()*
90489052 Return the screen position of window {nr} as a list with two
90499053 numbers: [row, col]. The first window always has position
9050- [1, 1].
9054+ [1, 1], unless there is a tabline, then it is [2, 1] .
90519055 {nr} can be the window number or the | window-ID | .
90529056 Return [0, 0] if the window cannot be found in the current
90539057 tabpage.
@@ -11580,7 +11584,7 @@ The sandbox is also used for the |:sandbox| command.
1158011584
1158111585These items are not allowed in the sandbox:
1158211586 - changing the buffer text
11583- - defining or changing mapping, autocommands, functions, user commands
11587+ - defining or changing mapping, autocommands, user commands
1158411588 - setting certain options (see | option-summary | )
1158511589 - setting certain v: variables (see | v:var | ) *E794*
1158611590 - executing a shell command
@@ -11602,6 +11606,7 @@ location. Insecure in this context are:
1160211606- sourcing a .vimrc or .exrc in the current directory
1160311607- while executing in the sandbox
1160411608- value coming from a modeline
11609+ - executing a function that was defined in the sandbox
1160511610
1160611611Note that when in the sandbox and saving an option value and restoring it, the
1160711612option will still be marked as it was set in the sandbox.
0 commit comments