comparison runtime/doc/options.txt @ 15713:ad8b2c109b22 v8.1.0864

patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff' commit https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 18:26:10 2019 +0100 patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff' Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 18:30:08 +0100
parents 9cd11f6beb70
children a3e2e7948ee4
comparison
equal deleted inserted replaced
15712:bc1989f9bd37 15713:ad8b2c109b22
6588 height. 6588 height.
6589 NOTE: This option is set to 1 when 'compatible' is set. 6589 NOTE: This option is set to 1 when 'compatible' is set.
6590 6590
6591 *'scrolloff'* *'so'* 6591 *'scrolloff'* *'so'*
6592 'scrolloff' 'so' number (default 0, set to 5 in |defaults.vim|) 6592 'scrolloff' 'so' number (default 0, set to 5 in |defaults.vim|)
6593 global 6593 global or local to window |global-local|
6594 {not in Vi} 6594 {not in Vi}
6595 Minimal number of screen lines to keep above and below the cursor. 6595 Minimal number of screen lines to keep above and below the cursor.
6596 This will make some context visible around where you are working. If 6596 This will make some context visible around where you are working. If
6597 you set it to a very large value (999) the cursor line will always be 6597 you set it to a very large value (999) the cursor line will always be
6598 in the middle of the window (except at the start or end of the file or 6598 in the middle of the window (except at the start or end of the file or
6599 when long lines wrap). 6599 when long lines wrap).
6600 For scrolling horizontally see 'sidescrolloff'. 6600 After using the local value, go back the global value with one of
6601 these two: >
6602 setlocal scrolloff<
6603 setlocal scrolloff=-1
6604 < For scrolling horizontally see 'sidescrolloff'.
6601 NOTE: This option is set to 0 when 'compatible' is set. 6605 NOTE: This option is set to 0 when 'compatible' is set.
6602 6606
6603 *'scrollopt'* *'sbo'* 6607 *'scrollopt'* *'sbo'*
6604 'scrollopt' 'sbo' string (default "ver,jump") 6608 'scrollopt' 'sbo' string (default "ver,jump")
6605 global 6609 global
7150 a fast terminal use a small number or 1. Not used for "zh" and "zl" 7154 a fast terminal use a small number or 1. Not used for "zh" and "zl"
7151 commands. 7155 commands.
7152 7156
7153 *'sidescrolloff'* *'siso'* 7157 *'sidescrolloff'* *'siso'*
7154 'sidescrolloff' 'siso' number (default 0) 7158 'sidescrolloff' 'siso' number (default 0)
7155 global 7159 global or local to window |global-local|
7156 {not in Vi} 7160 {not in Vi}
7157 The minimal number of screen columns to keep to the left and to the 7161 The minimal number of screen columns to keep to the left and to the
7158 right of the cursor if 'nowrap' is set. Setting this option to a 7162 right of the cursor if 'nowrap' is set. Setting this option to a
7159 value greater than 0 while having |'sidescroll'| also at a non-zero 7163 value greater than 0 while having |'sidescroll'| also at a non-zero
7160 value makes some context visible in the line you are scrolling in 7164 value makes some context visible in the line you are scrolling in
7161 horizontally (except at beginning of the line). Setting this option 7165 horizontally (except at beginning of the line). Setting this option
7162 to a large value (like 999) has the effect of keeping the cursor 7166 to a large value (like 999) has the effect of keeping the cursor
7163 horizontally centered in the window, as long as one does not come too 7167 horizontally centered in the window, as long as one does not come too
7164 close to the beginning of the line. 7168 close to the beginning of the line.
7165 NOTE: This option is set to 0 when 'compatible' is set. 7169 After using the local value, go back the global value with one of
7170 these two: >
7171 setlocal sidescrolloff<
7172 setlocal sidescrolloff=-1
7173 < NOTE: This option is set to 0 when 'compatible' is set.
7166 7174
7167 Example: Try this together with 'sidescroll' and 'listchars' as 7175 Example: Try this together with 'sidescroll' and 'listchars' as
7168 in the following example to never allow the cursor to move 7176 in the following example to never allow the cursor to move
7169 onto the "extends" character: > 7177 onto the "extends" character: >
7170 7178