How can I link the vsplit views of two buffers so that the lines from both files are always in sync?
Linking the vsplit views of two different buffers?
split
You should check the scrollbind option : :set scrollbindSee : :h scroll-binding for further reference.