1

I want to create a floating window, with the width of the entire Vim viewport. I had used winwidth() function, but I've encountered problems when windows are split.

I could get a list of windows in a tab, and then try to resolve the full width, but it gonna be a hassle especially when dealing with horizontal splits.

Is there any simpler way function or variable to get those dimensions?

1 Answer 1

1

You can use the variables &columns and &lines linked to the options 'columns' and 'lines' respectively.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.