14

I have two windows open on the same buffer and I want to edit two parts of the same file at the same time. I can't because the windows are scrolling together. I have noscrollbind set so I am confused by this. What else could be causing this?

If I start a new session then the problem goes away. I'd prefer not to have to close my session because I have memorized all the buffer numbers.

  • 8
    check :windo :set cursorbind? scrollbind? – Christian Brabandt Nov 25 '15 at 15:38
  • cursorbind and scrollbind are both off. :windo is a command that, to my knowledge, I am not using. – Stephen Rasku Nov 25 '15 at 15:48
  • 3
    I meant to type that command litteraly, e.g. including the :windo so you can see, if it is set in any window. – Christian Brabandt Nov 25 '15 at 15:55
  • 4
    Cool. It turns out that cursorbind was set. Thanks. – Stephen Rasku Nov 25 '15 at 17:56
8

As suggested by Christian Brabandt in the comments, this was caused by the 'cursorbind' setting.

:help 'cursorbind':

When this option is set, as the cursor in the current window moves other cursorbound windows (windows that also have this option set) move their cursors to the corresponding line and column. This option is useful for viewing the differences between two versions of a file (see 'diff'); in diff mode, inserted and deleted lines (though not characters within a line) are taken into account.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.