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

Re: shifting scrollbound windows?

Expand Messages
  • Antoine J. Mechelynck
    ... An easy way to resync scroll-bound windows that get out of sync because the contents are slightly different is to use the mouse on the scrollbar for the
    Message 1 of 3 , Sep 9, 2003
    • 0 Attachment
      Tim Chase <gumnos@...> wrote:
      > I've got two log files with similar contents, but not enough to get
      > any meaningful results from diffing them (or vimdiffing). I've got
      > them vertically split, each with scrollbind set on, so they
      > beautifully scroll together. However, as the logs are different
      > sides of a communication evesdropping, and various logging data is
      > included on both sides, I occasionlly have to resync them by
      > disabling scrollbind, ^E/^Y/^D/^U/^F/^B to get things back in the
      > general neighborhood of the other window, and then reset scrollbind.
      > Is there any easy way to snag a secondary set of scrolling commands
      > that ignores scrollbind?
      >
      > I don't know if gvim (6.0 on Win2k) would allow mapping the +shift'ed
      > versions of control keys, so that control+shift+y or control+shift+e
      > could be mapped to unsetting scrollbind, doing the associated
      > non-shifted operation, and resetting scrollbind. These would be most
      > handy, as it's just adding a shift to each of the above
      > window-scrolling commands to signify the non-scroll-bound version.
      > Though this is starting to approach Emacs madness for bucky-key count
      > :)
      >
      > TIA for any hints,
      >
      > -tim

      An easy way to resync scroll-bound windows that get out of sync because the
      contents are slightly different is to use the mouse on the scrollbar for
      the *inactive* window. No need to disable scrollbind. Works like a charm but
      of course it requires a Vim version that recognises mouse actions.

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