Perform completion on the pattern before the cursor and insert all matches
Ctrl-a
Example
Command-line 0 / 1Command-line 1 / 1Perform completion on the pattern before the cursor and insert all matches.
Command line
- Prompt
:set wildi- Insertion column
10- Editing mode
Insert- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
Command line open · edit or submit
Command line
- Prompt
:set wildignore wildignorecase- Insertion column
30- 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 wildignorecase- Insertion column
30- Editing mode
Insert- Completion menu
inactive
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.
one two
three four
five six
keepCursor on line 1, column 1Details & Vim help
Example replayed in Vim
Perform completion on the pattern before the cursor and insert all matches. Use at a command-line position with completion; this example uses an Ex command line. In a fresh / or ? search with the default completion state, Ctrl-a inserts a control character instead. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.