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
409409performed actions depend on whether the current file was changed, whether a !
410410is 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*
440447Note that Vim forbids some commands, for security reasons. This works like
0 commit comments