|
1 |
| -*scroll.txt* For Vim version 8.2. Last change: 2022 Apr 03 |
| 1 | +*scroll.txt* For Vim version 8.2. Last change: 2022 May 07 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -237,31 +237,34 @@ it works depends on your system. It might also work in an xterm
|
237 | 237 | |xterm-mouse-wheel|. By default only vertical scroll wheels are supported,
|
238 | 238 | but some GUIs also support horizontal scroll wheels.
|
239 | 239 |
|
240 |
| -For the Win32 GUI the scroll action is hard coded. It works just like |
241 |
| -dragging the scrollbar of the current window. How many lines are scrolled |
242 |
| -depends on your mouse driver. If the scroll action causes input focus |
243 |
| -problems, see |intellimouse-wheel-problems|. |
| 240 | +On MS-Windows, if the scroll action causes input focus -problems, see |
| 241 | +|intellimouse-wheel-problems|. |
244 | 242 |
|
245 |
| -For the X11 GUIs (Motif and GTK) scrolling the wheel generates key |
| 243 | +For Win32 and the X11 GUIs (Motif and GTK) scrolling the wheel generates key |
246 | 244 | presses <ScrollWheelUp>, <ScrollWheelDown>, <ScrollWheelLeft> and
|
247 | 245 | <ScrollWheelRight>. For example, if you push the scroll wheel upwards a
|
248 | 246 | <ScrollWheelUp> key press is generated causing the window to scroll upwards
|
249 | 247 | (while the text is actually moving downwards). The default action for these
|
250 | 248 | keys are:
|
251 |
| - <ScrollWheelUp> scroll three lines up *<ScrollWheelUp>* |
| 249 | + <ScrollWheelUp> scroll N lines up *<ScrollWheelUp>* |
252 | 250 | <S-ScrollWheelUp> scroll one page up *<S-ScrollWheelUp>*
|
253 | 251 | <C-ScrollWheelUp> scroll one page up *<C-ScrollWheelUp>*
|
254 |
| - <ScrollWheelDown> scroll three lines down *<ScrollWheelDown>* |
| 252 | + <ScrollWheelDown> scroll N lines down *<ScrollWheelDown>* |
255 | 253 | <S-ScrollWheelDown> scroll one page down *<S-ScrollWheelDown>*
|
256 | 254 | <C-ScrollWheelDown> scroll one page down *<C-ScrollWheelDown>*
|
257 |
| - <ScrollWheelLeft> scroll six columns left *<ScrollWheelLeft>* |
| 255 | + <ScrollWheelLeft> scroll N columns left *<ScrollWheelLeft>* |
258 | 256 | <S-ScrollWheelLeft> scroll one page left *<S-ScrollWheelLeft>*
|
259 | 257 | <C-ScrollWheelLeft> scroll one page left *<C-ScrollWheelLeft>*
|
260 |
| - <ScrollWheelRight> scroll six columns right *<ScrollWheelRight>* |
| 258 | + <ScrollWheelRight> scroll N columns right *<ScrollWheelRight>* |
261 | 259 | <S-ScrollWheelRight> scroll one page right *<S-ScrollWheelRight>*
|
262 | 260 | <C-ScrollWheelRight> scroll one page right *<C-ScrollWheelRight>*
|
263 | 261 | This should work in all modes, except when editing the command line.
|
264 | 262 |
|
| 263 | +The value of N depends on the system. By default Vim scrolls three lines when |
| 264 | +moving vertically, and six columns when moving horizontally. On MS-Windows |
| 265 | +the amount of lines and columns for each scroll action is taken from the |
| 266 | +system-wide settings. |
| 267 | + |
265 | 268 | Note that horizontal scrolling only works if 'nowrap' is set. Also, unless
|
266 | 269 | the "h" flag in 'guioptions' is set, the cursor moves to the longest visible
|
267 | 270 | line if the cursor line is about to be scrolled off the screen (similarly to
|
|
0 commit comments