diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2022-09-11 16:59:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-11 16:59:53 +0100 |
commit | 29ab524358ba429bcf6811710afc97a978641f0b (patch) | |
tree | 768c0de26e9a03fd9331fc4e74d4644312d94756 /runtime/optwin.vim | |
parent | 9510d22463055f56548ff461ccbc54caa1ba1a2f (diff) |
patch 9.0.0445: when opening/closing window text moves up/downv9.0.0445
Problem: When opening/closing window text moves up/down.
Solution: Add the 'splitscroll' option. When off text will keep its
position as much as possible.
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r-- | runtime/optwin.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim index c83b06b31a..6b9b5fec95 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -515,6 +515,8 @@ call <SID>AddOption("splitbelow", gettext("a new window is put below the current call <SID>BinOptionG("sb", &sb) call <SID>AddOption("splitright", gettext("a new window is put right of the current one")) call <SID>BinOptionG("spr", &spr) +call <SID>AddOption("splitscroll", gettext("determines scroll behavior when spliting windows")) +call <SID>BinOptionG("spsc", &spsc) call <SID>AddOption("scrollbind", gettext("this window scrolls together with other bound windows")) call append("$", "\t" .. s:local_to_window) call <SID>BinOptionL("scb") |