|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2015 Dec 03 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2015 Dec 28 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -5228,21 +5228,28 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()* |
5228 | 5228 | move. No error message is given. |
5229 | 5229 |
|
5230 | 5230 | {flags} is a String, which can contain these character flags: |
5231 | | - 'b' search backward instead of forward |
5232 | | - 'c' accept a match at the cursor position |
| 5231 | + 'b' search Backward instead of forward |
| 5232 | + 'c' accept a match at the Cursor position |
5233 | 5233 | 'e' move to the End of the match |
5234 | 5234 | 'n' do Not move the cursor |
5235 | | - 'p' return number of matching sub-pattern (see below) |
5236 | | - 's' set the ' mark at the previous location of the cursor |
5237 | | - 'w' wrap around the end of the file |
5238 | | - 'W' don't wrap around the end of the file |
| 5235 | + 'p' return number of matching sub-Pattern (see below) |
| 5236 | + 's' Set the ' mark at the previous location of the cursor |
| 5237 | + 'w' Wrap around the end of the file |
| 5238 | + 'W' don't Wrap around the end of the file |
| 5239 | + 'z' start searching at the cursor column instead of zero |
5239 | 5240 | If neither 'w' or 'W' is given, the 'wrapscan' option applies. |
5240 | 5241 |
|
5241 | 5242 | If the 's' flag is supplied, the ' mark is set, only if the |
5242 | 5243 | cursor is moved. The 's' flag cannot be combined with the 'n' |
5243 | 5244 | flag. |
5244 | 5245 |
|
5245 | 5246 | 'ignorecase', 'smartcase' and 'magic' are used. |
| 5247 | + |
| 5248 | + When the 'z' flag is not given seaching always starts in |
| 5249 | + column zero and then matches before the cursor are skipped. |
| 5250 | + When the 'c' flag is present in 'cpo' the next search starts |
| 5251 | + after the match. Without the 'c' flag the next search starts |
| 5252 | + one column further. |
5246 | 5253 |
|
5247 | 5254 | When the {stopline} argument is given then the search stops |
5248 | 5255 | after searching this line. This is useful to restrict the |
|
0 commit comments