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

Re: Column 80 edge/guide

Expand Messages
  • Antoine J. Mechelynck
    ... Beware: some files set &tw to 0 (meaning no fixed text width) by means of modelines or maybe filetype-plugins. I suggest replacing &tw above by something
    Message 1 of 3 , Apr 2, 2004
    • 0 Attachment
      Halim, Salman <salman@...> wrote:
      > I'm not sure I see the need for CursorHold in there, unless you use
      > :match elsewhere in your work, too. (I don't, so have a simple
      > :match.)
      >
      > The only thing I have been able to do effectively is to do something
      > like:
      >
      > execute 'set lines=9999 columns=' . (&tw + (&nu ? 8 : 0) + 2)

      Beware: some files set &tw to 0 (meaning no fixed text width) by means of
      modelines or maybe filetype-plugins. I suggest replacing &tw above by
      something like (&tw < 60 ? 60 : &tw) to avoid making the vim window
      ridiculously narrow.

      >
      > Sets the lines to the maximum that'll fit on-screen and the columns
      > to 'textwidth' + 8 if line-number is on + 2 for signs (I use
      > ShowMarks). Combine this with a command that changes your textwidth
      > and start using that instead of 'set tw=' and it'll always keep the
      > window size to precisely what your line length should be. . .
      >
      > Salman.
      >
      > > -----Original Message-----
      [...]

      Best regards,
      Tony.
    Your message has been successfully submitted and would be delivered to recipients shortly.