g/foo/c\
 change1 \
 change2 \
.
.=
w
