Mercurial > vim
comparison runtime/doc/pattern.txt @ 3153:37ecb8ff4560
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 20 Oct 2011 22:22:38 +0200 |
parents | 3502a7f991fc |
children | 8b8ef1fed009 |
comparison
equal
deleted
inserted
replaced
3152:3f8227139248 | 3153:37ecb8ff4560 |
---|---|
1 *pattern.txt* For Vim version 7.3. Last change: 2011 Jul 20 | 1 *pattern.txt* For Vim version 7.3. Last change: 2011 Sep 28 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
19 8. Composing characters |patterns-composing| | 19 8. Composing characters |patterns-composing| |
20 9. Compare with Perl patterns |perl-patterns| | 20 9. Compare with Perl patterns |perl-patterns| |
21 10. Highlighting matches |match-highlight| | 21 10. Highlighting matches |match-highlight| |
22 | 22 |
23 ============================================================================== | 23 ============================================================================== |
24 1. Search commands *search-commands* *E486* | 24 1. Search commands *search-commands* |
25 | 25 |
26 */* | 26 */* |
27 /{pattern}[/]<CR> Search forward for the [count]'th occurrence of | 27 /{pattern}[/]<CR> Search forward for the [count]'th occurrence of |
28 {pattern} |exclusive|. | 28 {pattern} |exclusive|. |
29 | 29 |
147 command with <CR> to actually position the cursor at the displayed match. Or | 147 command with <CR> to actually position the cursor at the displayed match. Or |
148 use <Esc> to abandon the search. | 148 use <Esc> to abandon the search. |
149 | 149 |
150 All matches for the last used search pattern will be highlighted if you set | 150 All matches for the last used search pattern will be highlighted if you set |
151 the 'hlsearch' option. This can be suspended with the |:nohlsearch| command. | 151 the 'hlsearch' option. This can be suspended with the |:nohlsearch| command. |
152 | |
153 When no match is found you get the error: *E486* Pattern not found | |
154 Note that for the |:global| command this behaves like a normal message, for Vi | |
155 compatibility. For the |:s| command the "e" flag can be used to avoid the | |
156 error message |:s_flags|. | |
152 | 157 |
153 *search-offset* *{offset}* | 158 *search-offset* *{offset}* |
154 These commands search for the specified pattern. With "/" and "?" an | 159 These commands search for the specified pattern. With "/" and "?" an |
155 additional offset may be given. There are two types of offsets: line offsets | 160 additional offset may be given. There are two types of offsets: line offsets |
156 and character offsets. {the character offsets are not in Vi} | 161 and character offsets. {the character offsets are not in Vi} |