Skip to content

Commit 6ff65fe

Browse files
authored
Merge pull request #1449 from vim-jp/hh-update-tagsrch
Update tagsrch.{txt,jax}
2 parents 1787bd9 + 3a9e859 commit 6ff65fe

File tree

2 files changed

+41
-24
lines changed

2 files changed

+41
-24
lines changed

doc/tagsrch.jax

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim バージョン 9.1. Last change: 2023 Feb 13
1+
*tagsrch.txt* For Vim バージョン 9.1. Last change: 2024 Mar 03
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -406,17 +406,25 @@ ASCIIコードでソートされている場合にのみ機能する。したが
406406
実行結果は現在のファイルが変更されているか、コマンドに!がつけられているか、
407407
'autowrite' オプションが設定されているかに依存する:
408408

409-
タグが現在の autowrite ~
410-
ファイル内 変更あり ! オプション 動作 ~
411-
-----------------------------------------------------------------------------
412-
yes x x x タグに行く
413-
no no x x 対象ファイルを読み込み、タグに行く
414-
no yes yes x 現在のファイルを捨て、対象ファイルを読み込ん
415-
でタグに行く
416-
no yes no on 現在のファイルを保存し、対象ファイルを読み込
417-
んでタグに行く
418-
no yes no off 失敗する
419-
-----------------------------------------------------------------------------
409+
タグが現在の ファイル autowrite ~
410+
ファイル内 変更あり ! winfixbuf オプション 動作 ~
411+
-----------------------------------------------------------------------------
412+
yes x x no x タグに行く
413+
no no x no x 対象ファイルを読み込み、タ
414+
グに行く
415+
no yes yes no x 現在のファイルを捨て、
416+
対象ファイルを読み込んでタ
417+
グに行く
418+
no yes no no on 現在のファイルを保存し、
419+
対象ファイルを読み込んでタ
420+
グに行く
421+
no yes no no off 失敗する
422+
yes x yes x x タグに行く
423+
no no no yes x 失敗する
424+
no yes no yes x 失敗する
425+
no yes no yes on 失敗する
426+
no yes no yes off 失敗する
427+
-----------------------------------------------------------------------------
420428

421429
- タグが現在のファイル上にある場合は、コマンドはいつも機能する。
422430
- タグが他のファイル上にあり、現在のファイルが変更されていないならば、対象とな
@@ -432,6 +440,8 @@ ASCIIコードでソートされている場合にのみ機能する。したが
432440
らば ":w" コマンドを使用し、そのあとで ":tag" を引数なしで実行する。これはタ
433441
グがスタック上に残っているためにうまく機能する。変更を失ってもよいのならば、
434442
":tag!" コマンドを使用できる。
443+
- タグが他のファイル上にあり、ウィンドウに 'winfixbuf' が含まれている場合、コ
444+
マンドは失敗する。タグが同じファイル内にある場合は、成功する可能性がある。
435445

436446
*tag-security*
437447
Vimはセキュリティの都合上、いくつかのコマンドを禁止していることに注意すること。

en/tagsrch.txt

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 9.1. Last change: 2023 Feb 13
1+
*tagsrch.txt* For Vim version 9.1. Last change: 2024 Mar 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -409,17 +409,22 @@ If the tag is in the current file this will always work. Otherwise the
409409
performed actions depend on whether the current file was changed, whether a !
410410
is added to the command and on the 'autowrite' option:
411411

412-
tag in file autowrite ~
413-
current file changed ! option action ~
414-
-----------------------------------------------------------------------------
415-
yes x x x goto tag
416-
no no x x read other file, goto tag
417-
no yes yes x abandon current file, read other file, goto
418-
tag
419-
no yes no on write current file, read other file, goto
420-
tag
421-
no yes no off fail
422-
-----------------------------------------------------------------------------
412+
tag in file autowrite ~
413+
current file changed ! winfixbuf option action ~
414+
-----------------------------------------------------------------------------
415+
yes x x no x goto tag
416+
no no x no x read other file, goto tag
417+
no yes yes no x abandon current file,
418+
read other file, goto tag
419+
no yes no no on write current file,
420+
read other file, goto tag
421+
no yes no no off fail
422+
yes x yes x x goto tag
423+
no no no yes x fail
424+
no yes no yes x fail
425+
no yes no yes on fail
426+
no yes no yes off fail
427+
-----------------------------------------------------------------------------
423428

424429
- If the tag is in the current file, the command will always work.
425430
- If the tag is in another file and the current file was not changed, the
@@ -435,6 +440,8 @@ current file changed ! option action ~
435440
the changes, use the ":w" command and then use ":tag" without an argument.
436441
This works because the tag is put on the stack anyway. If you want to lose
437442
the changes you can use the ":tag!" command.
443+
- If the tag is in another file and the window includes 'winfixbuf', the
444+
command will fail. If the tag is in the same file then it may succeed.
438445

439446
*tag-security*
440447
Note that Vim forbids some commands, for security reasons. This works like

0 commit comments

Comments
 (0)