Is it possible in Vim to lock the top line of the window so that the first line in the buffer is always visible on top of the window?
I have a file, say, a dump of a database table. The first row has column names, the other rows contain data. I want to be able to scroll contents up and down and always see column names.
NB Rows can be long, so I use nowrap and want the column names and contents to scroll right and left at the same time. Therefore :1split not suitable - if it is not possible to scroll two windows at the same time.
Thanks.
source share