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

Re: vimdiff: keep buffers equal width when window is resized

Expand Messages
  • George V. Reilly
    I have the following in my _vimrc function GvrVimDiff() set guifont=Andale_Mono:h8:w4.5 columns=165 wincmd = endfun function GvrVimUnDiff() set
    Message 1 of 6 , Jun 29, 2003
    • 0 Attachment
      I have the following in my _vimrc

      function GvrVimDiff()
      set guifont=Andale_Mono:h8:w4.5 columns=165
      wincmd =
      endfun

      function GvrVimUnDiff()
      set guifont=Bitstream_Vera_Sans_Mono:h10 columns=80
      endfun

      " handle diff-mode specially
      if &diff
      call GvrVimDiff()
      endif
      --
      Life is a series of problems.
      Do we want to moan about them or solve them?
      -- M. Scott Peck
      (Get Witty Auto-Generated Signatures from http://SmartBee.org)
      George V. Reilly mailto:george@...
      http://george.reilly.org/
      Read my weblog: http://erablog.net/blogs/george_v_reilly/



      ----- Original Message -----
      From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
      To: "Yakov Lerner" <yakov.lerner@...>; <vim@...>
      Sent: Sunday, June 29, 2003 3:02 AM
      Subject: Re: vimdiff: keep buffers equal width when window is resized


      > Yakov Lerner <yakov.lerner@...> wrote:
      > > When I run vimdiff, I often resize the width of the xterm/vim window.
      > > Vim adjusts, but in unexpected way: it doesn't keep widths of halves
      > > equal (only right buffer is adjusted, and left buffer stays same
      > > size).
      > >
      > > Naturally, I'd prefer widths of both halves to adjust
      > > automatically to remain 1/2 width of the window
      > > when the window is resized. How do I do it ?
      > >
      > > Does such auto-event -- WinResize -- exist ?
      > >
      > > Jacob
      >
      > see
      > :help 'equalalways'
      > :help 'eadirection'
      > :help CTRL-W_=
      > :help :vertical-resize
      >
      > HTH,
      > Tony.
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.