Mercurial > vim
diff runtime/doc/options.txt @ 30624:f2f35161d75a v9.0.0647
patch 9.0.0647: the 'splitscroll' option is not a good name
Commit: https://github.com/vim/vim/commit/13ece2ae1d09009d3fb8acf858c288e7848ecdac
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Mon Oct 3 15:28:08 2022 +0100
patch 9.0.0647: the 'splitscroll' option is not a good name
Problem: The 'splitscroll' option is not a good name.
Solution: Rename 'splitscroll' to 'splitkeep' and make it a string option,
also supporting "topline". (Luuk van Baal, closes #11258)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 Oct 2022 16:30:04 +0200 |
parents | 6c6ac189a05f |
children | f68f43043842 |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -7518,24 +7518,28 @@ A jump table for the options with a shor When on, splitting a window will put the new window below the current one. |:split| + *'splitkeep'* *'spk' +'splitkeep' 'spk' string (default "cursor") + global + The value of this option determines the scroll behavior when opening, + closing or resizing horizontal splits. + + Possible values are: + cursor Keep the same relative cursor position. + screen Keep the text on the same screen line. + topline Keep the topline the same. + + For the "screen" and "topline" values, the cursor position will be + changed when necessary. In this case, the jumplist will be populated + with the previous cursor position. For "screen", the text cannot always + be kept on the same screen line when 'wrap' is enabled. + *'splitright'* *'spr'* *'nosplitright'* *'nospr'* 'splitright' 'spr' boolean (default off) global When on, splitting a window will put the new window right of the current one. |:vsplit| - *'splitscroll'* *'spsc'* *'nosplitscroll'* *'nospsc'* -'splitscroll' 'spsc' boolean (default on) - global - The value of this option determines the scroll behavior when opening, - closing or resizing horizontal splits. When "on", splitting a window - horizontally will keep the same relative cursor position in the old and - new window, as well windows that are resized. When "off", scrolling - will be avoided to stabilize the window content. Instead, the cursor - position will be changed when necessary. In this case, the jumplist - will be populated with the previous cursor position. Scrolling cannot - be guaranteed to be avoided when 'wrap' is enabled. - *'startofline'* *'sol'* *'nostartofline'* *'nosol'* 'startofline' 'sol' boolean (default on) global