Skip to content

Commit 0ac401f

Browse files
committed
scroll.txt: Update Vim 8.2.5077
1 parent e824bd6 commit 0ac401f

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

en/scroll.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -237,31 +237,34 @@ it works depends on your system. It might also work in an xterm
237237
|xterm-mouse-wheel|. By default only vertical scroll wheels are supported,
238238
but some GUIs also support horizontal scroll wheels.
239239

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|.
244242

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
246244
presses <ScrollWheelUp>, <ScrollWheelDown>, <ScrollWheelLeft> and
247245
<ScrollWheelRight>. For example, if you push the scroll wheel upwards a
248246
<ScrollWheelUp> key press is generated causing the window to scroll upwards
249247
(while the text is actually moving downwards). The default action for these
250248
keys are:
251-
<ScrollWheelUp> scroll three lines up *<ScrollWheelUp>*
249+
<ScrollWheelUp> scroll N lines up *<ScrollWheelUp>*
252250
<S-ScrollWheelUp> scroll one page up *<S-ScrollWheelUp>*
253251
<C-ScrollWheelUp> scroll one page up *<C-ScrollWheelUp>*
254-
<ScrollWheelDown> scroll three lines down *<ScrollWheelDown>*
252+
<ScrollWheelDown> scroll N lines down *<ScrollWheelDown>*
255253
<S-ScrollWheelDown> scroll one page down *<S-ScrollWheelDown>*
256254
<C-ScrollWheelDown> scroll one page down *<C-ScrollWheelDown>*
257-
<ScrollWheelLeft> scroll six columns left *<ScrollWheelLeft>*
255+
<ScrollWheelLeft> scroll N columns left *<ScrollWheelLeft>*
258256
<S-ScrollWheelLeft> scroll one page left *<S-ScrollWheelLeft>*
259257
<C-ScrollWheelLeft> scroll one page left *<C-ScrollWheelLeft>*
260-
<ScrollWheelRight> scroll six columns right *<ScrollWheelRight>*
258+
<ScrollWheelRight> scroll N columns right *<ScrollWheelRight>*
261259
<S-ScrollWheelRight> scroll one page right *<S-ScrollWheelRight>*
262260
<C-ScrollWheelRight> scroll one page right *<C-ScrollWheelRight>*
263261
This should work in all modes, except when editing the command line.
264262

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+
265268
Note that horizontal scrolling only works if 'nowrap' is set. Also, unless
266269
the "h" flag in 'guioptions' is set, the cursor moves to the longest visible
267270
line if the cursor line is about to be scrolled off the screen (similarly to

0 commit comments

Comments
 (0)