@@ -6590,14 +6590,18 @@ A jump table for the options with a short description can be found at |Q_op|.
65906590
65916591 *'scrolloff'* *'so'*
65926592'scrolloff' 'so' number (default 0, set to 5 in | defaults.vim | )
6593- global
6593+ global or local to window | global-local |
65946594 {not in Vi}
65956595 Minimal number of screen lines to keep above and below the cursor.
65966596 This will make some context visible around where you are working. If
65976597 you set it to a very large value (999) the cursor line will always be
65986598 in the middle of the window (except at the start or end of the file or
65996599 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' .
66016605 NOTE: This option is set to 0 when 'compatible' is set.
66026606
66036607 *'scrollopt'* *'sbo'*
@@ -7152,7 +7156,7 @@ A jump table for the options with a short description can be found at |Q_op|.
71527156
71537157 *'sidescrolloff'* *'siso'*
71547158'sidescrolloff' 'siso' number (default 0)
7155- global
7159+ global or local to window | global-local |
71567160 {not in Vi}
71577161 The minimal number of screen columns to keep to the left and to the
71587162 right of the cursor if 'nowrap' is set. Setting this option to a
@@ -7162,7 +7166,11 @@ A jump table for the options with a short description can be found at |Q_op|.
71627166 to a large value (like 999) has the effect of keeping the cursor
71637167 horizontally centered in the window, as long as one does not come too
71647168 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.
71667174
71677175 Example: Try this together with 'sidescroll' and 'listchars' as
71687176 in the following example to never allow the cursor to move
0 commit comments