Loading ...
Sorry, an error occurred while loading the content.

Re: how do I get the current window width?

Expand Messages
  • skeept
    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
    Message 1 of 3 , Feb 11 8:49 PM
    • 0 Attachment
      Thanks!

      On Feb 11, 4:01 pm, Gary Johnson <garyj...@...> wrote:
      > On 2012-02-11, skeept wrote:
      > > 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
    Your message has been successfully submitted and would be delivered to recipients shortly.