m6zz_w
Last Updated: February 25, 2016
·
599
· croaky
8e2b996de3842c6ef7e68a82fa5f01f5

Avoiding the edges when scrolling in Vim

vim

When scrolling in Vim, we eventually hit the top/bottom edge of our screen with our cursor. Vim has an option which allows us to always have some lines above the cursor when hitting the top of the screen or underneath when hitting the bottom:

set scrolloff=5

This gives us a five line "border" when scrolling against the edges.

Say Thanks
Respond
Filed Under