> 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.
The full width of the Vim screen (or terminal screen) is in
'columns' and the width of the current window is given by
winwidth(0).
Regards,
Gary
--
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:
Post a Comment