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? Commented Nov 25, 2015 at 15:38
  • cursorbind and scrollbind are both off. :windo is a command that, to my knowledge, I am not using. Commented Nov 25, 2015 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. Commented Nov 25, 2015 at 15:55
  • 4
    Cool. It turns out that cursorbind was set. Thanks. Commented Nov 25, 2015 at 17:56

1 Answer 1


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 and acknowledge you have read our privacy policy.

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