Some commands must be combined with a motion command to be complete. These commands are called operators, as they operate on the text affected by the motion command.
The standard operator commands are:
- d -- delete
- c -- change
- y -- yank, or copy
- = -- indent
- < -- shift left
- > -- shift right
- ! -- filter through external command
- gu -- lowercase
- gU -- uppercase
- gq -- format text
You combine the operator with a motion just by entering the motion command after the operator. For example, cw changes a word.
All operator commands can be doubled to imply the current line. This way, dd deletes the current line, >> shift the current line one shiftwidth to the right and yy copies (yanks) the line.