Prefer operators
A highlight is a strip of a fixed length, so . repeats it by the character; daw means a word, so . repeats a word. Say it with an operator when the thing changes size; highlight shapes.
Friday, 1:10 p.m. The notes in the report have doubled words, each a different length: the the, orders orders, counted counted. You highlight the first spare the with vaw, delete it, move to the next one and press . to stamp it.
It takes four letters off orders and leaves rs behind.
Warm-up from earlier chapters
Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.
ok.ok.A strip of a fixed length
A highlight is a strip of this many characters. When you stamp a highlighted change with ., the stamp prints a strip of the same length again, starting at the cursor, whatever is there: four characters, because the was four. An operator is inked with a meaning instead: daw is a word, so . deletes a word, however long.
the the orders orders shippedthe orders orders shippedthe orders rs shippedorders loses orde.the the orders orders shippedthe orders orders shippedthe orders shippedorders goes whole.What does the stamp print?
You highlight the spare a with vaw and d it. Then w to the second refunded and .. What is left?
Doubled words, any length
Three doubled words of different lengths. daw on the first spare one, then go to the next and stamp it with ..
This exercise needs a keyboard. Read on, and play it at your computer.
More doubles
Doubled words across the codebase.
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.
Operator or highlight, from memory
Press the keys.
Say it, then stamp it
Ten fixes across the codebase: doubled words, misspellings and missing semicolons. Operators and the stamp.
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.
The summary function
1:40. The function behind the summary: two notes at the top were pasted in without their // , three lines of different lengths are missing their semicolons, and refunded, is listed twice in the return. Pick the tool for each: a highlight where the shape is fixed, an operator where the stamp will have to repeat a meaning.
Stuck? Show a hint
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.