Skip to content

Commit f830a10

Browse files
committed
Update pattern.{txt,jax}
1 parent 3b85c4a commit f830a10

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

doc/pattern.jax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim バージョン 9.1. Last change: 2024 Jun 18
1+
*pattern.txt* For Vim バージョン 9.1. Last change: 2024 Nov 09
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar

en/pattern.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 9.1. Last change: 2024 Jun 18
1+
*pattern.txt* For Vim version 9.1. Last change: 2024 Nov 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -164,7 +164,7 @@ or auto suspended with nohlsearch plugin. See |nohlsearch-install|.
164164

165165

166166
When 'shortmess' does not include the "S" flag, Vim will automatically show an
167-
index, on which the cursor is. This can look like this: >
167+
index, on which the cursor is. This can look like this: >
168168
169169
[1/5] Cursor is on first of 5 matches.
170170
[1/>99] Cursor is on first of more than 99 matches.
@@ -757,7 +757,7 @@ overview.
757757
\([a-z]\+\)\zs,\1 ",abc" in "abc,abc"
758758

759759
\@123<=
760-
Like "\@<=" but only look back 123 bytes. This avoids trying lots
760+
Like "\@<=" but only look back 123 bytes. This avoids trying lots
761761
of matches that are known to fail and make executing the pattern very
762762
slow. Example, check if there is a "<" just before "span":
763763
/<\@1<=span
@@ -783,7 +783,7 @@ overview.
783783
\(\/\/.*\)\@<!in "in" which is not after "//"
784784

785785
\@123<!
786-
Like "\@<!" but only look back 123 bytes. This avoids trying lots of
786+
Like "\@<!" but only look back 123 bytes. This avoids trying lots of
787787
matches that are known to fail and make executing the pattern very
788788
slow.
789789

@@ -907,7 +907,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
907907
inside the Visual area put it at the start and just before the end of
908908
the pattern, e.g.: >
909909
/\%Vfoo.*ba\%Vr
910-
< This also works if only "foo bar" was Visually selected. This: >
910+
< This also works if only "foo bar" was Visually selected. This: >
911911
/\%Vfoo.*bar\%V
912912
< would match "foo bar" if the Visual selection continues after the "r".
913913
Only works for the current buffer.
@@ -1014,7 +1014,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
10141014
< To match all characters after the current virtual column (where the
10151015
cursor is): >
10161016
/\%>.v.*
1017-
< Column 17 is not included, because this is a |/zero-width| match. To
1017+
< Column 17 is not included, because this is a |/zero-width| match. To
10181018
include the column use: >
10191019
/^.*\%17v.
10201020
< This command does the same thing, but also matches when there is no
@@ -1138,11 +1138,11 @@ x A single character, with no special meaning, matches itself
11381138
in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.
11391139
- If two characters in the sequence are separated by '-', this is
11401140
shorthand for the full list of ASCII characters between them. E.g.,
1141-
"[0-9]" matches any decimal digit. If the starting character exceeds
1142-
the ending character, e.g. [c-a], E944 occurs. Non-ASCII characters
1141+
"[0-9]" matches any decimal digit. If the starting character exceeds
1142+
the ending character, e.g. [c-a], E944 occurs. Non-ASCII characters
11431143
can be used, but the character values must not be more than 256 apart
1144-
in the old regexp engine. For example, searching by [\u3000-\u4000]
1145-
after setting re=1 emits a E945 error. Prepending \%#=2 will fix it.
1144+
in the old regexp engine. For example, searching by [\u3000-\u4000]
1145+
after setting re=1 emits a E945 error. Prepending \%#=2 will fix it.
11461146
- A character class expression is evaluated to the set of characters
11471147
belonging to that character class. The following character classes
11481148
are supported:
@@ -1208,7 +1208,7 @@ x A single character, with no special meaning, matches itself
12081208
any character that's not in "^]-\bdertnoUux". "[\xyz]" matches '\',
12091209
'x', 'y' and 'z'. It's better to use "\\" though, future expansions
12101210
may use other characters after '\'.
1211-
- Omitting the trailing ] is not considered an error. "[]" works like
1211+
- Omitting the trailing ] is not considered an error. "[]" works like
12121212
"[]]", it matches the ']' character.
12131213
- The following translations are accepted when the 'l' flag is not
12141214
included in 'cpoptions':
@@ -1444,14 +1444,14 @@ Finally, these constructs are unique to Perl:
14441444
display you may get unexpected results. That is because Vim
14451445
looks for a match in the line where redrawing starts.
14461446

1447-
Also see |matcharg()| and |getmatches()|. The former returns
1447+
Also see |matcharg()| and |getmatches()|. The former returns
14481448
the highlight group and pattern of a previous |:match|
14491449
command. The latter returns a list with highlight groups and
14501450
patterns defined by both |matchadd()| and |:match|.
14511451

14521452
Highlighting matches using |:match| are limited to three
14531453
matches (aside from |:match|, |:2match| and |:3match| are
1454-
available). |matchadd()| does not have this limitation and in
1454+
available). |matchadd()| does not have this limitation and in
14551455
addition makes it possible to prioritize matches.
14561456

14571457
Another example, which highlights all characters in virtual
@@ -1480,7 +1480,7 @@ Finally, these constructs are unique to Perl:
14801480
with the lowest number has priority if several match at the
14811481
same position. It uses the match id 3.
14821482
The ":3match" command is used by (Vim < 9.0.2054) |matchparen|
1483-
plugin. You are suggested to use ":match" for manual matching
1483+
plugin. You are suggested to use ":match" for manual matching
14841484
and ":2match" for another plugin or even better make use of
14851485
the more flexible |matchadd()| (and similar) functions instead.
14861486

@@ -1489,10 +1489,10 @@ Finally, these constructs are unique to Perl:
14891489

14901490
Fuzzy matching refers to matching strings using a non-exact search string.
14911491
Fuzzy matching will match a string, if all the characters in the search string
1492-
are present anywhere in the string in the same order. Case is ignored. In a
1492+
are present anywhere in the string in the same order. Case is ignored. In a
14931493
matched string, other characters can be present between two consecutive
1494-
characters in the search string. If the search string has multiple words, then
1495-
each word is matched separately. So the words in the search string can be
1494+
characters in the search string. If the search string has multiple words, then
1495+
each word is matched separately. So the words in the search string can be
14961496
present in any order in a string.
14971497

14981498
Fuzzy matching assigns a score for each matched string based on the following
@@ -1511,8 +1511,8 @@ will match the strings "GetPattern", "PatternGet", "getPattern", "patGetter",
15111511
"getSomePattern", "MatchpatternGet" etc.
15121512

15131513
The functions |matchfuzzy()| and |matchfuzzypos()| can be used to fuzzy search
1514-
a string in a List of strings. The matchfuzzy() function returns a List of
1515-
matching strings. The matchfuzzypos() functions returns the List of matches,
1514+
a string in a List of strings. The matchfuzzy() function returns a List of
1515+
matching strings. The matchfuzzypos() functions returns the List of matches,
15161516
the matching positions and the fuzzy match scores.
15171517

15181518
The "f" flag of `:vimgrep` enables fuzzy matching.

0 commit comments

Comments
 (0)