Skip to content

Commit a259f1d

Browse files
authored
Merge pull request #2252 from h-east/update-pattern
Update pattern.{txt,jax}
2 parents 0bcdc9a + 84176c1 commit a259f1d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/pattern.jax

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06
1+
*pattern.txt* For Vim バージョン 9.1. Last change: 2025 Aug 12
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1484,6 +1484,9 @@ Vim では、'^' と '$' は常に中間の改行にもマッチします。最
14841484
検索文字列が複数の単語を持つ場合、各単語は別々にマッチします。そのため検索文字
14851485
列内の複数の単語は{訳注: マッチした}文字列内でどのような順序でも存在し得ます。
14861486

1487+
Vim は fzy プロジェクトと同じ改良されたアルゴリズムを使用します:
1488+
https://github.com/jhawthorn/fzy
1489+
14871490
ファジーマッチではマッチした文字列ごとに以下の基準に基づいてスコアが割り当てら
14881491
れます:
14891492
- 連続してマッチした文字の個数。

en/pattern.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 9.1. Last change: 2025 Aug 06
1+
*pattern.txt* For Vim version 9.1. Last change: 2025 Aug 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1509,6 +1509,9 @@ characters in the search string. If the search string has multiple words, then
15091509
each word is matched separately. So the words in the search string can be
15101510
present in any order in a string.
15111511

1512+
Vim uses the same improved algorithm as the fzy project:
1513+
https://github.com/jhawthorn/fzy
1514+
15121515
Fuzzy matching assigns a score for each matched string based on the following
15131516
criteria:
15141517
- The number of sequentially matching characters.

0 commit comments

Comments
 (0)