How do I synchronously view and scroll vertically-split buffers in Vim?

In addition to setting scrollbind in both buffers, you need to issue the command :syncbind . That should sync the scrolling. I don’t know if it will do it perfectly if you’re wrapping lines and the two files have lines of different lengths. But if you turn wrap off I think it should keep them at same line numbers.

Leave a Comment