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 what d-then-i would be if you didn't have to think. 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
= c$ (change to end of line)
KeyNote
C
Change current line (linewise)
KeyNote
c
c
= cc (change whole line)
KeyNote
S
Substitute character (= 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 โ€”
ca' Change around quotes โ€”

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.

โ–ถ Try this in the simulator

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