[ACCEPTED]-Automatically scroll screen in vim when near top/bottom?-editor

Accepted answer
Score: 97

From my .vimrc:

set scrolloff=3 " Keep 3 lines below and above the cursor

0

Score: 6

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.

Score: 5

You might to also look at scrolljump which 2 sets the number of lines scrolled when hitting 1 the "border" set by scrolljump.

More Related questions