Vim Recall繁體中文

Open GUI dialog for searching

:promptfind

Example

Normal 0 / 2

Open GUI dialog for searching.

GUI dialog

Dialog
closed
Before & after

Before

GUI dialog

Dialog
closed

After

Search dialog

Find what
red
State
open; awaiting user action

Subject: :promptfind. Documentation-backed illustration; assumes Win32, Motif or GTK GUI; not replay-verified. Opens the Search dialog with red as the initial search string. No Find button has been pressed, so the text is unchanged.

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

Open GUI dialog for searching. 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 :pro[mptfind] 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.