Show matching tags and select one
Example
Normal 0 / 3Command-line 1 / 3Awaiting choice 2 / 3Normal 3 / 3call Paint()Cursor on line 1, column 1call Paint()Cursor on line 1, column 1call Paint()Cursor on line 1, column 1def Paint()Cursor on line 1, column 1Show matching tags and select one.
Windows
- main.vim Active
call Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
Command entered · ready to apply
Windows
- main.vim Active
call Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
Lists both matching Paint tags and waits for a number; neither destination is chosen yet.
Windows
- main.vim Active
call Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
Tag selection
1 Paint a.vim 2 Paint b.vim Type number and <Enter> (q or empty cancels):
Jumps in the current window to the chosen second tag in b.vim.
Windows
- b.vim Active
def Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
Before & after
call Paint()Cursor on line 1, column 1Windows
- main.vim Active
call Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
def Paint()Cursor on line 1, column 1Windows
- b.vim Active
def Paint()
Prepared tags
- 1: Paint
a.vim line 1: def Paint()- 2: Paint
b.vim line 1: def Paint()
Subject: :tselect. Documentation-backed illustration; assumes +quickfix, readable tags and destination files with exactly these two matches; splitbelow unset; previewpopup empty; English messages; the displayed tag list is summarized; not replay-verified. Lists both matching Paint tags and waits for a number; neither destination is chosen yet.
Details & Vim help
Show matching tags and select one. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :ts[elect] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.