comparison runtime/doc/scroll.txt @ 16553:0e473e9e70c2 v8.1.1280

patch 8.1.1280: remarks about functionality not in Vi clutters the help commit https://github.com/vim/vim/commit/25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 5 18:13:34 2019 +0200 patch 8.1.1280: remarks about functionality not in Vi clutters the help Problem: Remarks about functionality not in Vi clutters the help. Solution: Move all info about what is new in Vim or already existed in Vi to vi_diff.txt. Remove {not in Vi} remarks. (closes #4268) Add "noet" to the help files modeline. Also include many other help file improvements.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 May 2019 18:15:06 +0200
parents 2f7e67dd088c
children c002c4899529
comparison
equal deleted inserted replaced
16552:deb3d4f5be8b 16553:0e473e9e70c2
1 *scroll.txt* For Vim version 8.1. Last change: 2018 Apr 26 1 *scroll.txt* For Vim version 8.1. Last change: 2019 May 05
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
43 lines down in the file (if possible; when lines wrap 43 lines down in the file (if possible; when lines wrap
44 and when hitting the end of the file there may be a 44 and when hitting the end of the file there may be a
45 difference). When the cursor is on the last line of 45 difference). When the cursor is on the last line of
46 the buffer nothing happens and a beep is produced. 46 the buffer nothing happens and a beep is produced.
47 See also 'startofline' option. 47 See also 'startofline' option.
48 {difference from vi: Vim scrolls 'scroll' screen
49 lines, instead of file lines; makes a difference when
50 lines wrap}
51 48
52 <S-Down> or *<S-Down>* *<kPageDown>* 49 <S-Down> or *<S-Down>* *<kPageDown>*
53 <PageDown> or *<PageDown>* *CTRL-F* 50 <PageDown> or *<PageDown>* *CTRL-F*
54 CTRL-F Scroll window [count] pages Forwards (downwards) in 51 CTRL-F Scroll window [count] pages Forwards (downwards) in
55 the buffer. See also 'startofline' option. 52 the buffer. See also 'startofline' option.
118 cursor line). Put cursor at first non-blank in the 115 cursor line). Put cursor at first non-blank in the
119 line. 116 line.
120 117
121 *zt* 118 *zt*
122 zt Like "z<CR>", but leave the cursor in the same 119 zt Like "z<CR>", but leave the cursor in the same
123 column. {not in Vi} 120 column.
124 121
125 *zN<CR>* 122 *zN<CR>*
126 z{height}<CR> Redraw, make window {height} lines tall. This is 123 z{height}<CR> Redraw, make window {height} lines tall. This is
127 useful to make the number of lines small when screen 124 useful to make the number of lines small when screen
128 updating is very slow. Cannot make the height more 125 updating is very slow. Cannot make the height more
134 line. 131 line.
135 132
136 *zz* 133 *zz*
137 zz Like "z.", but leave the cursor in the same column. 134 zz Like "z.", but leave the cursor in the same column.
138 Careful: If caps-lock is on, this command becomes 135 Careful: If caps-lock is on, this command becomes
139 "ZZ": write buffer and exit! {not in Vi} 136 "ZZ": write buffer and exit!
140 137
141 *z-* 138 *z-*
142 z- Redraw, line [count] at bottom of window (default 139 z- Redraw, line [count] at bottom of window (default
143 cursor line). Put cursor at first non-blank in the 140 cursor line). Put cursor at first non-blank in the
144 line. 141 line.
145 142
146 *zb* 143 *zb*
147 zb Like "z-", but leave the cursor in the same column. 144 zb Like "z-", but leave the cursor in the same column.
148 {not in Vi}
149 145
150 ============================================================================== 146 ==============================================================================
151 4. Scrolling horizontally *scroll-horizontal* 147 4. Scrolling horizontally *scroll-horizontal*
152 148
153 For the following four commands the cursor follows the screen. If the 149 For the following four commands the cursor follows the screen. If the
156 not used. 152 not used.
157 153
158 z<Right> or *zl* *z<Right>* 154 z<Right> or *zl* *z<Right>*
159 zl Move the view on the text [count] characters to the 155 zl Move the view on the text [count] characters to the
160 right, thus scroll the text [count] characters to the 156 right, thus scroll the text [count] characters to the
161 left. This only works when 'wrap' is off. {not in 157 left. This only works when 'wrap' is off.
162 Vi}
163 158
164 z<Left> or *zh* *z<Left>* 159 z<Left> or *zh* *z<Left>*
165 zh Move the view on the text [count] characters to the 160 zh Move the view on the text [count] characters to the
166 left, thus scroll the text [count] characters to the 161 left, thus scroll the text [count] characters to the
167 right. This only works when 'wrap' is off. {not in 162 right. This only works when 'wrap' is off.
168 Vi}
169 163
170 *zL* 164 *zL*
171 zL Move the view on the text half a screenwidth to the 165 zL Move the view on the text half a screenwidth to the
172 right, thus scroll the text half a screenwidth to the 166 right, thus scroll the text half a screenwidth to the
173 left. This only works when 'wrap' is off. {not in 167 left. This only works when 'wrap' is off.
174 Vi}
175 168
176 *zH* 169 *zH*
177 zH Move the view on the text half a screenwidth to the 170 zH Move the view on the text half a screenwidth to the
178 left, thus scroll the text half a screenwidth to the 171 left, thus scroll the text half a screenwidth to the
179 right. This only works when 'wrap' is off. {not in 172 right. This only works when 'wrap' is off.
180 Vi}
181 173
182 For the following two commands the cursor is not moved in the text, only the 174 For the following two commands the cursor is not moved in the text, only the
183 text scrolls on the screen. 175 text scrolls on the screen.
184 176
185 *zs* 177 *zs*
186 zs Scroll the text horizontally to position the cursor 178 zs Scroll the text horizontally to position the cursor
187 at the start (left side) of the screen. This only 179 at the start (left side) of the screen. This only
188 works when 'wrap' is off. {not in Vi} 180 works when 'wrap' is off.
189 181
190 *ze* 182 *ze*
191 ze Scroll the text horizontally to position the cursor 183 ze Scroll the text horizontally to position the cursor
192 at the end (right side) of the screen. This only 184 at the end (right side) of the screen. This only
193 works when 'wrap' is off. {not in Vi} 185 works when 'wrap' is off.
194 186
195 ============================================================================== 187 ==============================================================================
196 5. Scrolling synchronously *scroll-binding* 188 5. Scrolling synchronously *scroll-binding*
197 189
198 Occasionally, it is desirable to bind two or more windows together such that 190 Occasionally, it is desirable to bind two or more windows together such that