C Rose wrote:
Is there a vim setting or script that keeps the point in the middle
of the screen (i.e. when scrolling, all of the text moves, rather
than the insertion point, unless at the very top or bottom of a
buffer). This would allow one to avoid having to look up and down the
screen for the point, or to visually 'search' for it.
:set scrolloff=9999
Wonderful---many thanks.
C
Limitations:
- If you're less than half a window height from the top or bottom of the
file, the cursor will stray;
- When using 'wrap', the window will always start at a line boundary,
unless the current line is larger than its window (in which case the
part of the line containing the cursor will be shown). This may cause
some "jerkiness" in the auto scroll if there are long lines in the file.
Best regards,
Tony.