Saturday, February 11, 2012

how do I get the current window width?

If I type
:set lines?

I get the width of the current terminal.
I would like to know if there is a way of getting the width of the
current window.

The reason I would like to do this is that I would like to set up my
statusline in such a way that
some information is only displayed if the width of the current window
is big enough.

Thanks.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: