Vim Recall繁體中文

Complete with the last or previous match

<S-Tab>

Example

Command-line 0 / 1

Complete with the last or previous match.

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 wildignorecase
Insertion column
19
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

Complete with the last or previous match. Use at a command-line position with completion. With the default wildchar=Tab, begin completion at the last match, then go to previous matches. Without active completion, Ctrl-p recalls older command-line history, so it is not an unconditional alias. The terminal must deliver Shift-Tab. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.