vimtricks.wiki Concise Vim tricks, one at a time.

How do you keep context lines visible above and below the cursor?

Answer

set scrolloff=8

Explanation

Set scrolloff (or so) to keep at least 8 lines visible above and below the cursor when scrolling. Prevents cursor from reaching screen edges.

Next

How do I visually select a double-quoted string including the quotes themselves?