Step 6 of 6

Repeating a change

Repeating a change

Once you’ve made a change with c, Helix remembers it — both the deletion and the text you typed. . repeats that change on whatever is selected now.

So fixing the same mistake in several places becomes:

  • select the first one
  • press c, type the fix, hit Escape
  • select the next one
  • press .

No retyping. The selection decides where the change lands; . supplies the change. It’s the same object-then-verb pattern as everything else in this lesson, with . standing in for the verb.

Work through the checklist below.

  1. Change the first teh to the The cursor starts on it — press e to select it, c, type the, then hit Escape.
  2. Repeat the change on the next line with . Press j, then gh and e to select the next teh, then press ..
  3. And once more on the last line Same again — j, gh, e, then ..
Change the first teh to the The cursor starts on it — press e to select it, c, type the, then hit Escape.

Next: Repeat the change on the next line with .

Loading editor…