Suppose I have some large datafile, which overflow the screen in both vertical and horizontal direction. How can I browse this file, while the header-lines stay on the screen?
For the moment, I am using
less -S, so that I can nicely scroll my file horizontally and vertically. However, when scrolling down, the header lines obviously disappear. Is there a way to keep these using less?
An alternative is using
vim in split-screen mode with
:set nowrap. However, now if I scroll horizontally, the top window doesn't scroll in the same way (
:windo set scrollbind only works for vertical scrolling as far as I know).