How can I get size of my current workspace?

Hey there, how can I get size of my current workspace?

You can use a combination of win functions.


If your work area is made up of multiple windows you can cycle through each window and get the min row/col position and then the height/width would be the max win row/col + height/width.

To get a list of windows there is


If you don’t use tabpages you can also use


If you want to exclude a side bar like a file tree, you can just exclude that in your loop based on some identifying value like the window buffers filetype.