Vim Recall繁體中文

Show the contents of the tag stack

:tags

Example

Normal 0 / 3

Show the contents of the tag stack.

Tag stack

Stack index
3
first
from references.txt · line 1, column 1
second
from alpha.txt · line 1, column 1

Command output

Empty
Before & after

Before

Tag stack

Stack index
3
first
from references.txt · line 1, column 1
second
from alpha.txt · line 1, column 1

Command output

Empty

After

Tag stack

Stack index
3
first
from references.txt · line 1, column 1
second
from alpha.txt · line 1, column 1

Command output

# TO tag         FROM line  in file/text
  1  1 first               1  references.txt
  2  1 second              1  alpha.txt
>

Start in Normal mode. The example tags file is authored locally: first and second have one target each; item has two targets. No external tags generator or project files are used. Prepared terminal: 80 columns by 24 rows, cmdheight=1 and nomore. Submit the command with the first Enter; output waits at hit-enter. Press the second Enter to acknowledge and return to Normal mode.

Sample buffer
beta one
beta two
beta three
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Show the contents of the tag stack. 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. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.