Complete file names
Ctrl-x Ctrl-f
Example
Insert 0 / 1Insert 1 / 1alpha alpine beta
alInsertion point on line 2, column 3alpha alpine beta
alInsertion point on line 2, column 3Complete file names.
Completion
Completion inactive
Vim offers alpha.txt and alpine.txt as filename completions for al.
Completion
Mode: files
- alpha.txt
- alpine.txt
Before & after
alpha alpine beta
alInsertion point on line 2, column 3Completion
Completion inactive
alpha alpine beta
alInsertion point on line 2, column 3Completion
Mode: files
- alpha.txt
- alpine.txt
Start in Insert mode. The private example directory contains alpha.txt and alpine.txt. Filename completion matches those temporary files after the typed prefix al.
Details & Vim help
Example replayed in Vim
Complete file names. Context: commands in CTRL-X submode *i_CTRL-X_index*. 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.