In python, when using the vim module, it is incredibly simple to get the current window/buffer/tabpage:
current_win = vim.current.window
current_buff = vim.current.buffer
current_tabpage = vim.current.tabpage
My question is, how do you do this in pure VimL / Vimscript and what type of object is returned? I really can't seem to find this anywhere in windows.txt
(:h windows
).
:h functions
makes more sense for you to find script related info.