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
See also: Editing the Command Line, Setting Options (:set)