This question already has an answer here:

How can I link the vsplit views of two buffers so that the lines from both files are always in sync?

marked as duplicate by Martin Tournoij Aug 21 '15 at 15:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You should check the scrollbind option :

:set scrollbind

See : :h scroll-binding for further reference.

Not the answer you're looking for? Browse other questions tagged or ask your own question.