Hacker News new | ask | show | jobs
by funkymike 1665 days ago
You can do this in vim with the scrollbind option. You could create a simple script to set up the windows and get the views lined up to the correct line numbers. The one caveat is that enabling line wrapping will screw it up.

    :windo set nowrap
    :vsp
    ctrl-w ctrl-w ctrl-d ctrl-d
    :vsp
    ctrl-w ctrl-w ctrl-d ctrl-d
    :windo set scrollbind
1 comments

Tried that but don't see a way to make the windows show different parts of the document. How does that happen?

And if I were to insert or delete lines in the first panel, would the others change their starting rows to account for that?