Select a match several entries back
Example
Command-line 0 / 1Command-line 1 / 1Select a match several entries back.
Command line
- Typed text
:edit item6.txt- Insertion offset
15
Active completion
- Configuration
wildmenu, wildmode=full, wildoptions=pum, pumheight=5- Candidates
item0.txt … item8.txt- Selected index
6- Visible popup height
5 rows
The five-row popup moves the selection by three entries (height minus two), inserting the selected filename; see cmdexpand.c get_next_or_prev_match().
Command line
- Typed text
:edit item3.txt- Insertion offset
15
Completion state
- Configuration
wildmenu, wildmode=full, wildoptions=pum, pumheight=5- Candidates
item0.txt … item8.txt- Selected index
3- Visible popup height
5 rows
Before & after
Before
Command line
- Typed text
:edit item6.txt- Insertion offset
15
Active completion
- Configuration
wildmenu, wildmode=full, wildoptions=pum, pumheight=5- Candidates
item0.txt … item8.txt- Selected index
6- Visible popup height
5 rows
After
Command line
- Typed text
:edit item3.txt- Insertion offset
15
Completion state
- Configuration
wildmenu, wildmode=full, wildoptions=pum, pumheight=5- Candidates
item0.txt … item8.txt- Selected index
3- Visible popup height
5 rows
Documentation-backed illustration. the displayed completion candidates and selection are prepared; 'wildmenu' documents this key's special meaning. The five-row popup moves the selection by three entries (height minus two), inserting the selected filename; see cmdexpand.c get_next_or_prev_match(). Primary help: 'wildmenu'.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Select a match several entries back. Context: commands in wildmenu mode with 'wildoptions' set to "pum". Parenthesized context labels in the displayed keys are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.