You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_use
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.
Gary Johnson
unread,
Feb 11, 2012, 4:01:54 PM2/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_use
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
skeept
unread,
Feb 11, 2012, 11:49:07 PM2/11/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message