2

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! :)

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

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.

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.