1
- *tagsrch.txt* For Vim version 9.1. Last change: 2024 Mar 16
1
+ *tagsrch.txt* For Vim version 9.1. Last change: 2024 Aug 01
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -588,12 +588,12 @@ ctags).
588
588
{term} ;" The two characters semicolon and double quote. This is
589
589
interpreted by Vi as the start of a comment, which makes the
590
590
following be ignored. This is for backwards compatibility
591
- with Vi, it ignores the following fields. Example:
591
+ with Vi, it ignores the following fields. Example: >
592
592
APP file /^static int APP;$/;" v
593
- When {tagaddress} is not a line number or search pattern, then
593
+ < When {tagaddress} is not a line number or search pattern, then
594
594
{term} must be |;". Here the bar ends the command (excluding
595
595
the bar) and ;" is used to have Vi ignore the rest of the
596
- line. Example:
596
+ line. Example: >
597
597
APP file.c call cursor(3, 4)|;" v
598
598
599
599
{field} .. A list of optional fields. Each field has the form:
@@ -611,7 +611,9 @@ ctags).
611
611
612
612
There is one field that doesn't have a ':'. This is the kind
613
613
of the tag. It is handled like it was preceded with "kind:".
614
- See the documentation of ctags for the kinds it produces.
614
+ In the above example, this was "kind:v" (typically variable).
615
+ See the documentation of ctags for the kinds it produces, with
616
+ ctags you can use `ctags --list-kinds` .
615
617
616
618
The only other field currently recognized by Vim is "file:"
617
619
(with an empty value). It is used for a static tag.
@@ -656,14 +658,14 @@ If the command is a normal search command (it starts and ends with "/" or
656
658
The direction of the search is forward for "/", backward for "?".
657
659
Note that 'wrapscan' does not matter, the whole file is always searched.
658
660
- If the search fails, another try is done ignoring case. If that fails too,
659
- a search is done for:
661
+ a search is done for: >
660
662
"^tagname[ \t]*("
661
- (the tag with '^' prepended and "[ \t]*(" appended). When using function
663
+ < (the tag with '^' prepended and "[ \t]*(" appended). When using function
662
664
names, this will find the function name when it is in column 0. This will
663
665
help when the arguments to the function have changed since the tags file was
664
- made. If this search also fails another search is done with:
666
+ made. If this search also fails another search is done with: >
665
667
"^[#a-zA-Z_].*\<tagname[ \t]*("
666
- This means: A line starting with '#' or an identifier and containing the tag
668
+ < This means: A line starting with '#' or an identifier and containing the tag
667
669
followed by white space and a '('. This will find macro names and function
668
670
names with a type prepended.
669
671
0 commit comments