Is there a way to get a tab-local variable for a tabpage that is not currently activated
Is there a way to get a tab-local variable for a tabpage that is not currently activated
I want to retrieve a t:varible
for a different tabpage that is not the current tabpage. How can I do it without switching to that tabpage? I know its tabpagenr
.
t:varible
tabpagenr
How about window local variables w:
and buffer local ones b:
?
w:
b:
1 Answer
1
Just realize there are getwinvar()
, getbufvar()
, gettabvar()
etc.
getwinvar()
getbufvar()
gettabvar()
Thanks for contributing an answer to Vi and Vim Stack Exchange!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.