Scroll two splits simultaneously
If you’ve ever diffed a file in Vim or otherwise had two corresponding splits, you may have wished for a way to scroll them together. Vim can do just that with
scrollbind enabled, each window in Vim will scroll simultaneously. Line for line as you move through the file, the other window will scroll as well.
Simply run the following:
Or to put it back:
You can also toggle the option with:
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?