Lines Matching refs:matches
21 10. Highlighting matches |match-highlight|
93 This makes the search also find matches that are not a
98 This makes the search also find matches that are not a
126 1gd Like "gd", but ignore matches inside a {} block that
130 1gD Like "gD", but ignore matches inside a {} block that
152 All matches for the last used search pattern will be highlighted if you set
158 [1/5] Cursor is on first of 5 matches.
159 [1/>99] Cursor is on first of more than 99 matches.
160 [>99/>99] Cursor is after 99 match of more than 99 matches.
161 [?/??] Unknown how many matches exists, generating the
205 An example of how to search for matches with a pattern and change the match
243 All matches for the last used search pattern will be highlighted if you set
251 The search usually skips matches that don't move the cursor. Whether the next
257 first column, skipping matches until one is found past the cursor position.
323 1. A pattern is one or more branches, separated by "\|". It matches anything
324 that matches one of the branches. Example: "foo\|beep" matches "foo" and
325 matches "beep". If more than one branch matches, the first one is used.
333 2. A branch is one or more concats, separated by "\&". It matches the last
336 "foobeep\&..." matches "foo" in "foobeep".
337 ".*Peter\&.*Bob" matches in a line containing both "Peter" and "Bob"
345 3. A concat is one or more pieces, concatenated. It matches a match for the
347 "f[0-9]b", first matches "f", then a digit and then "b".
356 times the atom can be matched. Example: "a*" matches any sequence of "a"
400 however, these characters may get a special meaning. For example, "a" matches
401 the letter "a", while "\a" matches any alphabetic character.
404 preceded with a backslash to match literally. For example "." matches any
405 character while "\." matches a dot.
423 after: \v \m \M \V matches ~
450 'magic' 'nomagic' matches of the preceding atom ~
480 magic nomagic matches ~
503 magic nomagic matches ~
534 magic nomagic matches ~
550 x x a character with no special meaning matches itself
560 magic nomagic matches ~
575 Example matches ~
601 Example 'nomagic' matches ~
609 "^" it matches the star character.
612 time. For example, "\_.*END" matches all text from the current
620 Example matches ~
626 Example matches ~
640 \{-n,m} matches n to m of the preceding atom, as few as possible
641 \{-n} matches n of the preceding atom
642 \{-n,} matches at least n of the preceding atom, as few as possible
643 \{-,m} matches 0 to m of the preceding atom, as few as possible
644 \{-} matches 0 or more of the preceding atom, as few as possible
652 matches "aaab" in "xaaab".
654 Example matches ~
669 Example matches ~
689 Example matches ~
704 position where "bar" matches, "foo" does not match. To avoid matching
711 line where "bar" matches. If ".*bar" matches somewhere the \@! will
716 \@<= Matches with zero width if the preceding atom matches just before what
719 Example matches ~
727 "\@<=" and "\@<!" check for matches just before what follows.
728 Theoretically these matches could start anywhere before this position.
729 But to limit the time needed, only the line where what follows matches
737 Bad example matches ~
742 Example matches ~
747 of matches that are known to fail and make executing the pattern very
759 before what follows. Thus this matches if there is no position in the
760 current or previous line where the atom matches such that it ends just
767 Example matches ~
773 matches that are known to fail and make executing the pattern very
779 Example matches ~
783 This matches the preceding atom as if it was a pattern by itself. If
784 it doesn't match, there is no retry with shorter sub-matches or
786 "aaab", but in the second case the "a*" matches only the first two
787 "a"s. "\(a*\)\@>ab" will not match "aaab", because the "a*" matches
797 ^ At beginning of pattern or after "\|", "\(", "\%(" or "\n": matches
798 start-of-line; at other positions, matches literal '^'. |/zero-width|
799 Example matches ~
809 Example matches ~
815 matches end-of-line <EOL>; at other positions, matches literal '$'.
824 pattern, but not inside []. Note that "a\_$b" never matches, since
826 Example matches ~
835 Careful: "\_.*" matches all text to the end of the buffer!
853 < matches an "if" at the start of a line, ignoring white space.
866 Example: "end\ze\(if\|for\)" matches the "end" in "endif" and
872 \%^ Matches start of the file. When matching with a string, matches the
878 \%$ Matches end of the file. When matching with a string, matches the
905 result becomes invalid. Vim doesn't automatically update the matches.
922 is because "\%<'e" matches at the character before the 'e mark, and
925 becomes invalid. Vim doesn't automatically update the matches.
938 update the matches. This means Syntax highlighting quickly becomes
961 update the matches. This means Syntax highlighting quickly becomes
973 < Note that "\%<46c" matches in column 45 when the "." matches a byte in
990 update highlighted matches. This means Syntax highlighting quickly
1006 < This command does the same thing, but also matches when there is no
1013 where ".*" matches zero characters.
1061 \e matches <Esc> */\e*
1062 \t matches <Tab> */\t*
1063 \r matches <CR> */\r*
1064 \b matches <BS> */\b*
1065 \n matches an end-of-line */\n*
1069 ~ matches the last given substitute string */~* */\~*
1072 E.g., "\(^a\)" matches 'a' at the start of a line.
1077 Example: "\([a-z]\).\1" matches "ata", "ehe", "tot", etc.
1089 x A single character, with no special meaning, matches itself
1098 brackets. It matches any single character in the collection.
1099 Example matches ~
1109 "\_[^ab]" matches the end-of-line and any character but "a" and "b".
1121 If the sequence begins with "^", it matches any single character NOT
1122 in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.
1125 "[0-9]" matches any decimal digit. If the starting character exceeds
1192 any character that's not in "^]-\bdertnoUux". "[\xyz]" matches '\',
1196 "[]]", it matches the ']' character.
1214 much faster than "[0-9]" and matches the same characters. However,
1218 \%[] A sequence of optionally matched atoms. This always matches.
1219 It matches as much of the list of atoms it contains as possible. Thus
1222 < matches "r", "re", "rea" or "read". The longest that matches is used.
1235 < matches "index" "index[", "index[0" and "index[0]".
1265 pattern 'ignorecase' 'smartcase' matches ~
1288 matches a <NL> in the string. The use of "\n" (backslash n) to match a <NL>
1322 more composing characters than the pattern, it still matches. But all
1383 10. Highlighting matches *match-highlight*
1399 matches is given higher priority than that of 'hlsearch'.
1401 matches.
1412 matches.
1423 Highlighting matches using |:match| are limited to three
1424 matches (aside from |:match|, |:2match| and |:3match| are
1426 addition makes it possible to prioritize matches.
1450 there can be three matches active at the same time. The match
1485 matching strings. The matchfuzzypos() functions returns the List of matches,