3

I am not sure if it is even possible but, when I am working with vertical splits, sometimes, I want both of them to scroll up/down at the same time rather than using this combination:

  1. scroll down ctrle
  2. focus on left splitctrlL
  3. scroll down ctrle
  4. focus on right ctrlw + ctrlH

It would be amazing to use ctrlE and achive to same result.

Thanks! :)

1
  • Did you review the help? :he scroll leads you right through the relevant options.
    – wbogacz
    Jan 17, 2019 at 14:33

1 Answer 1

4

You want scrollbind.

Use :set scb on each window you which to bind together, then it should be possible to scroll them together.

Additionally this command may come in handy: :windo set scrollbind! - this toggles scrollbind all windows

see :h scroll-binding, and :h scrollbind for full details.

Also note that cursorbind, diff and scrollopt settings are somewhat related to what you are doing.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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