Vim Recall繁體中文

Show all files in the buffer list

:files

Example

Normal 0 / 3

Show all files in the buffer list.

Command output

Empty
Before & after

Before

Command output

Empty

After

Command output

1 %a   "alpha.txt"                    line 1
  2  h   "beta.txt"                     line 1
  3 #h   "gamma.txt"                    line 1

Start in Normal mode. 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
one two
three four
five six
keep
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Show all files in the buffer list. 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.