Vim Recall繁體中文

If 'wildchar' is <Tab>: Do completion on the pattern before the cursor

<Tab>

Example

Command-line 0 / 1

If 'wildchar' is <Tab>: Do completion on the pattern before the cursor.

Command line

Prompt
:set wildi
Insertion column
10
Editing mode
Insert
Completion menu
inactive

Vim messages

Empty
Last status message
Last warning
Before & after

Before

Command line

Prompt
:set wildi
Insertion column
10
Editing mode
Insert
Completion menu
inactive

Vim messages

Empty
Last status message
Last warning

After

Command line

Prompt
:set wildignore
Insertion column
15
Editing mode
Insert
Completion menu
active

Vim messages

Empty
Last status message
Last warning

Start in Command-line mode. Completion is confined to built-in option names beginning with wildi; no filesystem completion is used.

Sample buffer
one two
three four
five six
keep
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

If 'wildchar' is <Tab>: Do completion on the pattern before the cursor. Use while editing a : command or / or ? search prompt; this edits or controls that prompt rather than running an Ex command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.