Commands


Interacting with content in Vim is generally performed using commands. "Command" is a fairly broad term in Vim, and applies to a wide variety of commands, used for navigation, editing, etc. Commands can take several forms depending on the context such as the current mode:

In normal mode Commands are made up of one or more operators, counts, motions, and text objects, and general follow one of the following patterns:

[count]{operator}{[count]motion}

or

[count]{operator}{text object}

In command-line mode commands are issued in the command-line, and are typically of the form:

:[range]{command} [args]

Commands are less-common in insert mode, but those that are available are typically of the form:

<C-{operator}>

This format is also common for commands that affect menus and the like.

When working with windows in Vim, commands take the form:

<C-W> {operator}

Individual commands will be discussed in their respective sections, but the purpose of this section is provide some information about their constituent parts.