diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-02 21:29:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-02 21:29:55 +0100 |
commit | f6196f424474e2a9c160f2a995fc2691f82b58f9 (patch) | |
tree | ba662de7c6737ae250b30a08b1ba126ec94481aa /runtime/optwin.vim | |
parent | ff85d4a1076dc7d6fc3102f6560df3ad1af696ae (diff) |
patch 9.0.0640: cannot scroll by screen line if a line wrapsv9.0.0640
Problem: Cannot scroll by screen line if a line wraps.
Solution: Add the 'smoothscroll' option. Only works for CTRL-E and CTRL-Y
so far.
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r-- | runtime/optwin.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim index db433c61f9..04fe3b3b68 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -343,6 +343,9 @@ call <SID>Header(gettext("displaying text")) call <SID>AddOption("scroll", gettext("number of lines to scroll for CTRL-U and CTRL-D")) call append("$", "\t" .. s:local_to_window) call <SID>OptionL("scr") +call <SID>AddOption("smoothscroll", gettext("scroll by screen line")) +call append("$", "\t" .. s:local_to_window) +call <SID>BinOptionL("sms") call <SID>AddOption("scrolloff", gettext("number of screen lines to show around the cursor")) call append("$", " \tset so=" . &so) call <SID>AddOption("wrap", gettext("long lines wrap")) |