[ACCEPTED]-Automatically scroll screen in vim when near top/bottom?-editor
Accepted answer
From my .vimrc:
set scrolloff=3 " Keep 3 lines below and above the cursor
0
Try scrolloff=9999
. After cursor reaches middle of the 3 screen, pressing j moves the screen up by 2 one, instead of moving the cursor down. Works 1 great once you get used to it.
You might to also look at scrolljump which 2 sets the number of lines scrolled when hitting 1 the "border" set by scrolljump.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.