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

Re: diff synchronization problem

Expand Messages
  • Benji Fisher
    ... In my limited experience with vimdiff, this is much more annoying than it is useful. Did you have any situations in mind? ;) Is there any chance of
    Message 1 of 3 , Jan 29, 2002
      Bram Moolenaar wrote:
      >
      > Johannes Zellner wrote:
      >
      > > I've a small problem when vimdiff'ing two files vertically.
      > > Suppose I open all folds in both windows with zR. Then I
      > > jump to a mark in the first window. This correctly synchronizes
      > > the second window.
      > >
      > > But if I then switch to the second window (^Ww) both windows get
      > > scrolled to the point BEFORE the 'jump to a mark' action.
      > >
      > > If do any scroll action (^E ^Y j k) in window one before the
      > > '^Ww' action everything is ok again.
      > >
      > > This is really annoying as I don't suppose a 'change window'
      > > action to scroll my buffers.
      >
      > What happens here is that you jump to the cursor position in that
      > window. The other windows then scroll to show the same position.
      >
      > The strange thing is that when you scroll only a few lines at a time the
      > cursor position in the other window is adjusted (more or less).
      >
      > This jumping might actually be useful in some situations. But I agree
      > that it's unexpected, since windows contents normally doesn't change
      > when entering a window.

      In my limited experience with vimdiff, this is much more annoying than it
      is useful. Did you have any situations in mind? ;) Is there any chance of
      changing this behavior?

      $0.02 --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.