Move up to parent / select the previous match
Example
Command-line 0 / 1Command-line 1 / 1Move up to parent / select the previous match.
Command line
- Typed text
:edit src/main.c- Insertion offset
16
Active completion
- Configuration
wildmenu, wildmode=full, wildoptions= (no pum)- Selected
src/main.c- Candidates
src/main.c src/util.c
Up removes the src/ path level and completes the first entry docs/ in its parent directory; the prepared parent contains only docs/ and src/.
Command line
- Typed text
:edit docs/- Insertion offset
11
Completion state
- Configuration
wildmenu, wildmode=full, wildoptions= (no pum)- Selected
docs/- Parent-directory candidates
docs/ src/
Before & after
Before
Command line
- Typed text
:edit src/main.c- Insertion offset
16
Active completion
- Configuration
wildmenu, wildmode=full, wildoptions= (no pum)- Selected
src/main.c- Candidates
src/main.c src/util.c
After
Command line
- Typed text
:edit docs/- Insertion offset
11
Completion state
- Configuration
wildmenu, wildmode=full, wildoptions= (no pum)- Selected
docs/- Parent-directory candidates
docs/ src/
Documentation-backed illustration. the displayed completion candidates and selection are prepared; 'wildmenu' documents this key's special meaning. Up removes the src/ path level and completes the first entry docs/ in its parent directory; the prepared parent contains only docs/ and src/. Primary help: 'wildmenu'.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Move up to parent / select the previous match. Context: commands in wildmenu mode (see 'wildmenu'). 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.