Vim Recall繁體中文

Show names of all sourced Vim scripts

:scriptnames

Example

Normal 0 / 2

Show names of all sourced Vim scripts.

Sourced scripts

1
/demo/vimrc
2
/demo/plugin/colors.vim

Vim messages

Empty
Before & after

Before

Sourced scripts

1
/demo/vimrc
2
/demo/plugin/colors.vim

Vim messages

Empty

After

Sourced scripts

1
/demo/vimrc
2
/demo/plugin/colors.vim

Vim messages

  1: /demo/vimrc
  2: /demo/plugin/colors.vim

Subject: :scriptnames. Documentation-backed illustration; assumes +eval and exactly the two displayed scripts sourced in that order; ordinary interactive English cmdheight=4 with at least 80 columns, no scrolled or pending messages, prompts or queued input; not replay-verified. Lists the sourced scripts in first-encounter order with their script IDs; no script is re-executed.

Sample buffer
notes
Cursor on line 1, column 1
Details & Vim help

Show names of all sourced Vim scripts. 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 :scr[iptnames] 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.