I would like to always see a little bit of context when the lines are to long, like:

set scrolloff=5

Is possible?

1 Answer 1


See ":help 'sidescrolloff'". It works the same as 'scrolloff', only vertically, so you can do:

set sidescrolloff=5
  • Can I set that based on percentage of the current terminal width? Apr 16 at 23:57
  • @theonlygusti You could write a function to compute the absolute number, but other than that, no.
    – Heptite
    May 17 at 9:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .