5

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

9

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

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

You must log in to answer this question.

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