diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 7b6fb6733a..9f78179c61 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -159,7 +159,7 @@ the same range instances now compare equal. OPTIONS -• 'scrolloffpad' allows keeping 'scrolloff' context at the end of file. +• 'scrolloffpad' allows vertically centering cursor at the end of file. • 'winpinned' prevents window from closing unless specifically targeted. PERFORMANCE diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt index 0e52eeefa6..9fc8770dd3 100644 --- a/runtime/doc/quickref.txt +++ b/runtime/doc/quickref.txt @@ -841,7 +841,7 @@ Short explanation of each option: *option-list* 'scrollbind' 'scb' scroll in window as other windows scroll 'scrolljump' 'sj' minimum number of lines to scroll 'scrolloff' 'so' minimum nr. of lines above and below cursor -'scrolloffpad' 'sop' keep 'scrolloff' context at end of file +'scrolloffpad' 'sop' vertically center cursor at end of file 'scrollopt' 'sbo' how 'scrollbind' should behave 'sections' 'sect' nroff macros that separate sections 'secure' secure mode for reading .vimrc in current dir diff --git a/runtime/scripts/optwin.lua b/runtime/scripts/optwin.lua index 84d3c828ec..ff5bd8d7f6 100644 --- a/runtime/scripts/optwin.lua +++ b/runtime/scripts/optwin.lua @@ -59,7 +59,7 @@ local options_list = { { 'scroll', N_ 'number of lines to scroll for CTRL-U and CTRL-D' }, { 'smoothscroll', N_ 'scroll by screen line' }, { 'scrolloff', N_ 'number of screen lines to show around the cursor' }, - { 'scrolloffpad', N_ "keep 'scrolloff' context even at end of file" }, + { 'scrolloffpad', N_ 'vertically center cursor even at end of file' }, { 'wrap', N_ 'long lines wrap' }, { 'linebreak', N_ "wrap long lines at a character in 'breakat'" }, { 'breakindent', N_ 'preserve indentation in wrapped text' }, diff --git a/src/nvim/options.lua b/src/nvim/options.lua index d749aefa00..666888abcd 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -7272,7 +7272,7 @@ local options = { ]=], full_name = 'scrolloffpad', scope = { 'global', 'win' }, - short_desc = N_("keep 'scrolloff' context even at end of file"), + short_desc = N_('vertically center cursor even at end of file'), type = 'number', varname = 'p_sop', },