Synchronous buffer scrolling in vim
vim can be used to scroll the contents of two files side by side. A few commands are useful in this context.
:vsporCtrl-w vsplits the window vertically, i.e., two panes are shown side-by-side.:set nowrapensures that vim doesn’t display wrapped lines. Although this is often conveninet, it may make comparing files line by line harder.:set scrollbindshould be done for each of the panes you want to scroll in sync.Ctrl-w hmoves to the left pane,Ctrl-w lmoves to the right pane. Switching to the next pane can be donw withCtrl-w w.:qwill close a pane.