@@ -82,23 +82,14 @@ CTRL-]はtelnetの標準エスケープキーである。タグにジャンプ
82
82
すること。これは ":tnext" を使うときの混乱を避けるためである。優先度のリストは
83
83
":tag {ident} " を使ったときに変化する。
84
84
85
- The ignore-case matches are not found for a ":tag" command when the
86
- 'ignorecase' option is off and 'tagcase' is "followic" or when 'tagcase' is
87
- "match". They are found when a pattern is used (starting with a "/") and for
88
- ":tselect", also when 'ignorecase' is off and 'tagcase' is "followic" or when
89
- 'tagcase' is "match". Note that using ignore-case tag searching disables
90
- binary searching in the tags file, which causes a slowdown. This can be
91
- avoided by fold-case sorting the tag file. See the 'tagbsearch' option for an
92
- explanation.
93
- {参考用の旧訳:
94
- 'ignorecase' オプションがオフになっているときの ":tag" コマンドでは、大文字、
95
- 小文字を区別しないマッチは見つからない。'ignorecase' がオフになっていても、
96
- ("/" で始まる) パターンを使用し、かつ ":tselect" を使ったときには見つけること
97
- ができる。大文字、小文字を区別しないタグ検索を使うと、tagsファイル内で二分探索
98
- ができなくなるため処理が遅くなる、ということに注意すること。これはタグファイル
99
- を大文字と小文字を区別せずにソートすることで回避できる。'tagbsearch' オプショ
100
- ンの説明も参照のこと。
101
- :旧訳ここまで}
85
+ 'ignorecase' オプションがオフになっており 'tagcase' オプションが "followic" の
86
+ 時、または 'tagcase' が"match" の時、":tag" コマンドでは大文字小文字を区別しな
87
+ いマッチは見つからない。 ("/" で始まる) パターンで ":tselect" を使い、
88
+ 'ignorecase' がオフで 'tagcase' が "followic" の時、または 'tagcase' が
89
+ "match" の時には見つけることができる。大文字小文字を区別しないタグ検索を使うと、
90
+ tags ファイル内の二分探索が無効になり処理が遅くなる点に注意。これは大文字と小文
91
+ 字を区別せずにソートすることで回避できる。'tagbsearch' オプションの説明も参照の
92
+ こと。
102
93
103
94
==============================================================================
104
95
2. タグスタック *tag-stack* *tagstack* *E425*
@@ -441,21 +432,13 @@ Emacs タグファイルの行は非常に長くなることがある。Vim は
441
432
以下のようなときは、リストの次のファイルを使わない:
442
433
- 現在のバッファに対するstaticタグが見つかった場合。
443
434
- globalタグが見つかった場合。
444
- This also depends on whether case is ignored. Case is ignored when
445
- 'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is
446
- "ignore". If case is not ignored, and the tags file only has a match without
447
- matching case, the next tags file is searched for a match with matching case.
448
- If no tag with matching case is found, the first match without matching case
449
- is used. If case is ignored, and a matching global tag with or without
450
- matching case is found, this one is used, no further tags files are searched.
451
- {参考用の旧訳:
452
- これらは 'ignorecase' オプションに依存する。もしオフにしてあり、tagsファイルに
453
- 大文字小文字が一致するタグがない場合、一致するタグを次のtagsファイルで検索す
454
- る。もし一致するタグが見つからなければ、大文字小文字を無視して最初にマッチした
455
- ものが使われる。もし 'ignorecase' がオンの場合、大文字小文字の区別なく、global
456
- タグが見つかった時点でそのタグが使用され、それ以降のtagsファイルは検索されな
457
- い。
458
- :旧訳ここまで}
435
+ これは大文字小文字を区別するかどうかにも依存する。 'ignorecase' がセットされて
436
+ かつ 'tagcase' が "followic" の時、または 'tagcase' が "ignore" の時に大文字小
437
+ 文字は無視される。大文字小文字を無視せず、タグファイル大文字小文字が一致するマ
438
+ ッチが tags ファイルに無い場合、次の tags ファイルを検索する。もし大文字小文字
439
+ が一致するタグがなければ、大文字小文字を無視して最初にマッチしたものが使われる。
440
+ 大文字小文字を無視し、大文字小文字を区別するしないに関わらず global タグが見つ
441
+ かった場合、それが使われてそれ以降の tags ファイルは検索されない。
459
442
460
443
タグファイル名が "./" で始まるとき、'.' は現在のファイルのパスで置き換えられ
461
444
る。これにより、現在のファイルがあるディレクトリのtagsファイルを使用することが
@@ -584,15 +567,11 @@ tagsファイルの先頭行には、
584
567
た場合には、Vimはtagsファイルに対して二分検索を使用する:
585
568
!_TAG_FILE_SORTED<TAB>1<TAB>{anything} ~
586
569
587
- A tag file may be case-fold sorted to avoid a linear search when case is
588
- ignored. (Case is ignored when 'ignorecase' is set and 'tagcase' is
589
- "followic", or when 'tagcase' is "ignore".) See 'tagbsearch' for details.
590
- The value '2' should be used then:
591
- {参考用の旧訳:
592
- 'ignorecase' がonのときに線形検索を避けるために、大文字と小文字を区別せずにタ
593
- グファイルがソートされることがある。詳細は 'tagbsearch' を参照。そのときは '2'
594
- が使われる:
595
- :旧訳ここまで}
570
+ 大文字小文字を無視する設定の時、線形検索を避けるためにタグファイルは大文字小文
571
+ 字を区別せずにソートされることがある。 ('ignorecase' がセットされかつ
572
+ 'tagcase' が "followic" の時、または 'tagcase' が "ignore" の時に大文字小文字は
573
+ 無視される。) 詳細は 'tagbsearch' を参照のこと。
574
+ その時、値として '2' が使われる:
596
575
!_TAG_FILE_SORTED<TAB>2<TAB>{anything} ~
597
576
598
577
Vimが認識するもう1つのタグはタグファイルのエンコーディングを指定するものであ
0 commit comments