Mercurial > vim
comparison runtime/doc/visual.txt @ 42:c75153d791d0
updated for version 7.0026
author | vimboss |
---|---|
date | Wed, 29 Dec 2004 20:58:21 +0000 |
parents | 3fc0f57ecb91 |
children | 4707450c2b33 |
comparison
equal
deleted
inserted
replaced
41:f529edb9bab3 | 42:c75153d791d0 |
---|---|
1 *visual.txt* For Vim version 7.0aa. Last change: 2004 Jun 08 | 1 *visual.txt* For Vim version 7.0aa. Last change: 2004 Dec 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
44 The highlighted text normally includes the character under the cursor. | 44 The highlighted text normally includes the character under the cursor. |
45 However, when the 'selection' option is set to "exclusive" and the cursor is | 45 However, when the 'selection' option is set to "exclusive" and the cursor is |
46 after the Visual area, the character under the cursor is not included. | 46 after the Visual area, the character under the cursor is not included. |
47 | 47 |
48 With "v" the text before the start position and after the end position will | 48 With "v" the text before the start position and after the end position will |
49 not be highlighted. However, All uppercase and non-alpha operators, except | 49 not be highlighted. However, all uppercase and non-alpha operators, except |
50 "~" and "U", will work on whole lines anyway. See the list of operators | 50 "~" and "U", will work on whole lines anyway. See the list of operators |
51 below. | 51 below. |
52 | 52 |
53 *visual-block* | 53 *visual-block* |
54 With CTRL-V (blockwise Visual mode) the highlighted text will be a rectangle | 54 With CTRL-V (blockwise Visual mode) the highlighted text will be a rectangle |
137 extended to the rightmost column of the longest line. | 137 extended to the rightmost column of the longest line. |
138 | 138 |
139 If you want to highlight exactly the same area as the last time, you can use | 139 If you want to highlight exactly the same area as the last time, you can use |
140 "gv" |gv| |v_gv|. | 140 "gv" |gv| |v_gv|. |
141 | 141 |
142 *v_<Esc>* | |
143 <Esc> In Visual mode: Stop Visual mode. | |
144 | |
142 *v_CTRL-C* | 145 *v_CTRL-C* |
143 CTRL-C In Visual mode: Stop Visual mode. When insert mode is | 146 CTRL-C In Visual mode: Stop Visual mode. When insert mode is |
144 pending (the mode message shows | 147 pending (the mode message shows |
145 "-- (insert) VISUAL --"), it is also stopped. | 148 "-- (insert) VISUAL --"), it is also stopped. |
146 | 149 |
174 | 177 |
175 When switching to another window on the same buffer, the cursor position in | 178 When switching to another window on the same buffer, the cursor position in |
176 that window is adjusted, so that the same Visual area is still selected. This | 179 that window is adjusted, so that the same Visual area is still selected. This |
177 is especially useful to view the start of the Visual area in one window, and | 180 is especially useful to view the start of the Visual area in one window, and |
178 the end in another. You can then use <RightMouse> (or <S-LeftMouse> when | 181 the end in another. You can then use <RightMouse> (or <S-LeftMouse> when |
179 'mousemodel' is "popup") to move either end of the Visual area. | 182 'mousemodel' is "popup") to drag either end of the Visual area. |
180 | 183 |
181 ============================================================================== | 184 ============================================================================== |
182 4. Operating on the Visual area *visual-operators* | 185 4. Operating on the Visual area *visual-operators* |
183 | 186 |
184 The operators that can be used are: | 187 The operators that can be used are: |
360 Note that special characters (like '.' and '*') will cause problems. | 363 Note that special characters (like '.' and '*') will cause problems. |
361 | 364 |
362 Visual-block Examples *blockwise-examples* | 365 Visual-block Examples *blockwise-examples* |
363 With the following text, I will indicate the commands to produce the block and | 366 With the following text, I will indicate the commands to produce the block and |
364 the results below. In all cases, the cursor begins on the 'a' in the first | 367 the results below. In all cases, the cursor begins on the 'a' in the first |
365 line if the test text. | 368 line of the test text. |
366 The following modeline settings are assumed ":ts=8:sw=4:". | 369 The following modeline settings are assumed ":ts=8:sw=4:". |
367 | 370 |
368 It will be helpful to | 371 It will be helpful to |
369 :set hls | 372 :set hls |
370 /<TAB> | 373 /<TAB> |