I often use gVim and Vim to view data tables in which the top row is the header. Is there any way to display this top row while browsing through the rest of the table? Ditto columns for the case in which the first column is a row heading.
EDIT: I accepted a good answer (and there were others) for showing the top column.
The horizontal (first row) equivalent to the answer I accepted is
:vert split
ctrl+w 5 |
or
ctrl+w v
ctrl+w 10 |
It would be nice to be able to do both, but apparently that is not straightforward.
You could open the file in two windows (command line:
vim -o file file, orctrl+w n :o file) and then one is fixed and you can scroll in the other window.If you want to see the first 5 rows press
ctrl+w 5 _.