Command-Line Completion

Tab to complete; Ctrl-D to list.

Keys: Tab, Ctrl-D, Ctrl-A

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 ({key::set})