@@ -1767,6 +1767,7 @@ getpos( {expr}) List position of cursor, mark, etc.
17671767getqflist() List list of quickfix items
17681768getreg( [{regname} [, 1]]) String contents of register
17691769getregtype( [{regname} ]) String type of register
1770+ gettabvar( {nr} , {varname} ) any variable {varname} in tab {nr}
17701771gettabwinvar( {tabnr} , {winnr} , {name} )
17711772 any {name} in {winnr} in tab page {tabnr}
17721773getwinposx() Number X coord in pixels of GUI Vim window
@@ -1886,6 +1887,7 @@ setmatches( {list}) Number restore a list of matches
18861887setpos( {expr} , {list} ) Number set the {expr} position to {list}
18871888setqflist( {list} [, {action} ]) Number modify quickfix list using {list}
18881889setreg( {n} , {v} [, {opt} ]) Number set register to value and type
1890+ settabvar( {nr} , {varname} , {val} ) set {varname} in tab page {nr} to {val}
18891891settabwinvar( {tabnr} , {winnr} , {varname} , {val} ) set {varname} in window
18901892 {winnr} in tab page {tabnr} to {val}
18911893setwinvar( {nr} , {varname} , {val} ) set {varname} in window {nr} to {val}
@@ -3354,6 +3356,12 @@ getregtype([{regname}]) *getregtype()*
33543356 <CTRL-V> is one character with value 0x16.
33553357 If {regname} is not specified, | v:register | is used.
33563358
3359+ gettabvar({tabnr} , {varname} ) *gettabvar()*
3360+ Get the value of a tab-local variable {varname} in tab page
3361+ {tabnr} . | t:var |
3362+ Tabs are numbered starting with one.
3363+ Note that the name without "t:" must be used.
3364+
33573365gettabwinvar({tabnr} , {winnr} , {varname} ) *gettabwinvar()*
33583366 Get the value of window-local variable {varname} in window
33593367 {winnr} in tab page {tabnr} .
@@ -5103,6 +5111,15 @@ setreg({regname}, {value} [,{options}])
51035111 nothing: >
51045112 :call setreg('a', '', 'al')
51055113
5114+ settabvar({tabnr} , {varname} , {val} ) *settabvar()*
5115+ Set tab-local variable {varname} to {val} in tab page {tabnr} .
5116+ | t:var |
5117+ Note that the variable name without "t:" must be used.
5118+ Tabs are numbered starting with one.
5119+ Vim briefly goes to the tab page {tabnr} , this may trigger
5120+ TabLeave and TabEnter autocommands.
5121+ This function is not available in the | sandbox | .
5122+
51065123settabwinvar({tabnr} , {winnr} , {varname} , {val} ) *settabwinvar()*
51075124 Set option or local variable {varname} in window {winnr} to
51085125 {val} .
0 commit comments