Vim Recall繁體中文

Use file selection dialog

:browse

Example

Normal 0 / 4
alpha
beta
gamma
Cursor on line 1, column 1

Use file selection dialog.

Before & after
Before
alpha
beta
gamma
Cursor on line 1, column 1
After
beta
Cursor on line 1, column 1

File chooser result

Chosen file
beta.txt

Windows

beta.txt Active
beta

Documentation-backed illustration. a supported GUI with +browse; beta.txt exists, the current buffer is unmodified, and the illustrated user accepts beta.txt. The GUI file chooser is shown; choosing beta.txt and accepting opens that file. Primary help: :browse.

Details & Vim help

Use file selection dialog. 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 :bro[wse] 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.