[vim/vim] feat(move): allow scrolloff to be satisfied using screen rows past EOF (PR #19040)

4 views
Skip to first unread message

mcauley-penney

unread,
1:09 AM (13 hours ago) 1:09 AM
to vim/vim, Subscribed

Add a new window-local option 'scrolloffpad' that lets 'scrolloff' remain effective at the end of a buffer by treating EOF filler rows as usable screen space.

When enabled, cursor movements and jumps (e.g. j, G) keep the cursor line centered according to 'scrolloff' even past the last buffer line. When disabled, existing scrolloff behavior is preserved.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19040

Commit Summary

  • bc03504 feat(move): allow scrolloff to be satisfied using screen rows past EOF

File Changes

(10 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19040@github.com>

Reply all
Reply to author
Forward
0 new messages