A step was added to a numbered checklist, as a second item 2. Every item after it is now off by one and needs its number bumped — the same edit, four lines running.
Helix has a command that adds one to the number under the cursor (lesson 8), and it works on every cursor at once (lesson 11). So the job is to put a cursor on each wrong number and increment once — or, if you would rather not, to visit the numbers in turn and increment at each.
- Select the lines from the second
2.to the end, then narrow that selection to one cursor per number. - Or move down the list a line at a time, incrementing as you go — the cursor keeps its column when it moves down, so it stays on the number.
The goal: make the buffer match the target under the editor. The new item 2 keeps its number; only the four lines after it change.
One route, if you want it
Move to 2. Tag the commit and press x four times to extend the
selection to the last line. s, then \d+ and Enter, leaves one
cursor on each number. Ctrl-a adds one to all four; , collapses back
to a single cursor.