Scrolling down both parts of a split-window at the same time in Vim
Is it possible to scroll down the left and right parts of a vertically split window in Vim? I have two files I would like to compare roughly. Each line of these files looks almost the same.
Go to the first split, and type in
:set scrollbind
Go to the next one (ctrl+w), and do the same.
To disable:
:set noscrollbind
For more info, check the documentation for scroll binding - http://vimdoc.sourceforge.net/htmldoc/scroll.html#scroll-binding
See the documentation for scroll-binding. You'll need to set this for each window that you want bound (e.g. a minimum of 2)
If you're comparing 2 files, however, vimdiff may be of more use