Change

c is delete-then-insert, atomically.

Keys: c, cw, C, cc, S, s

c is the change operator. cw changes a word; cc changes a line; C changes to end of line. S and s are short forms that change a whole line and a single character respectively.

c is the shortcut for d-then-i: it deletes the same range d would, and drops you straight into insert mode at that spot. Then Esc closes the change as one undoable, dot-repeatable unit.

Change a word
KeyNote
c
w
Change to end of line (same as c$)
KeyNote
C
Change current line (linewise)
KeyNote
c
c
Change a whole line (same as cc)
KeyNote
S
Substitute one character (same as cl)
KeyNote
s
cw โ€” change a word
C โ€” change to end of line
cc / S โ€” change a line
s โ€” substitute a char

Reference

Key Action Equivalent
c{motion} Change range d{motion} + i
cc Change line โ€”
C Change to end of line c$
S Change line cc
s Substitute one char cl
cw Change word (note: like ce) โ€”
ciw Change inner word (text object; see Text Objects) โ€”
ca' Change around quotes (text object; see Text Objects) โ€”

Worked example โ€” cw is c then w

Change = delete + Insert in one step.

Step 1 ยท
editing.change
Step 2 ยท cw ยท cw โ€” 'quick' gone, Insert mode on.
cw โ€” 'quick' gone, Insert mode on.

Note the trailing space stays โ€” cw stops just before the next word. (One of cw's well-known quirks.)

Step 3 ยท slow ยท Type 'slow'.
Type 'slow'.
Step 4 ยท Esc ยท Esc โ€” change is committed and dot-repeatable.
Esc โ€” change is committed and dot-repeatable.

See also: Delete, More Ways into Insert, Repeat Last Change, The Universal Grammar