Command-Line Completion
Tab to complete; Ctrl-D to list.
Tab completes commands, options, filenames, and tags depending on context. Ctrl-D lists matches. Ctrl-A inserts ALL matches. The wildmenu makes Tab cycle through choices.
Vim knows what kind of argument the current command expects, and completes accordingly. Tab is context-sensitive: it completes Ex command names, option names, filenames, tag names, and more.
| Key | Effect |
|---|---|
| Tab | Complete (or cycle, with wildmenu) |
| Shift-Tab | Reverse-cycle through matches |
| Ctrl-D | List all matches |
| Ctrl-A | Insert ALL matches |
| Ctrl-L | Complete longest unambiguous prefix |
Watch
- ๐บ #0451 Ctrl-R Ctrl-W โ Insert Word (not yet published)
- ๐บ #0451 Ctrl-R Ctrl-W โ Insert Word (not yet published)
See also: Editing the Command Line, Setting Options ({key::set})