Hacker News new | past | comments | ask | show | jobs | submit login

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



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?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: