Vim Recall繁體中文

Move up to parent / select the previous match

<Up> (wildmenu)

Example

Command-line 0 / 1

Move 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
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'.

Sample buffer
alpha
beta
gamma
Cursor on line 1, column 1
Details & 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.