#20058·vim

scrolloffpad: allow for keeping cursor centered at start of buffer

Author: mcauley-penneyCreated Apr 24, 2026Updated Oct 1, 2026
Labelsenhancement

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.

The recently added scrolloffpad option affords centering the cursor at end of buffer (EOB). Another popularly requested feature is to keep the cursor centered at start of buffer (SOB).

See comments in this Neovim issue and this Reddit thread

Describe the solution you'd like scrolloffpad should afford the user the option to keep the cursor centered at start of buffer. The options I am proposing are:

SOP Value Meaning Implemented
< -1 Invalid Yes
-1 Use the global value Yes
0 scrolloffpad is disabled (default) Yes
1 Apply only at EOB Yes
2 Apply only at SOB No
3 Apply at both EOB and SOB No
> 3 Invalid No

Describe alternatives you've considered Given that scrolloffpad was recently accepted, there is a precedent for integrating this feature into core. Any alternative, such as existing plugins, would seem less appropriate in my opinion.

Additional context See related issues:

  1. https://github.com/vim/vim/issues/13428
  2. https://github.com/neovim/neovim/issues/25392#event-24835109372
  3. https://github.com/neovim/neovim/issues/26366