Learn Practice Daily golf Reference
Visual mode·Lesson 7 of 7·9 min·0/5 exercisesPro

The quarter-end report

The whole of track seven against the clock: rows with V, a column with Ctrl-v and I, ragged ends with $A, a highlight rescued with o, and an operator for the last doubled word.

Scene

Friday, 4:00 p.m. The report goes to the investors at five. The final export has arrived, fresh from the accountant's system: twenty orders, three test rows that crept back in, and a header that took on your names from this morning, all but one. With it, the accountant's last list: ids with Q3-, the import format with its semicolons, and the notes tidied.

One hour, two files, every edge of the highlighter.

From memory

Warm-up from earlier chapters

Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.

Stamp the last change here.
press the keys…
1 of 2
Stamp the last change here.

Every edge, on one card

The narrow tip for a stretch with no name (v), the wide edge for whole rows (V), the rectangle for a column (Ctrl-v with I or A), its edge pulled out to every line's end ($A), c and r over a block, o for the other end and gv for the last mark. And when the change will be repeated: an operator, so the stamp works.

Boss round

Stage 1 · The rows

4:05. The three TEST rows go, then every row, all the way to the bottom of the file, gets Q3- in front of its id. The header keeps its id.

Stuck? Show a hinton the first TEST row: V2jd · on the first order row: <C-v>GIQ3-<Esc>
1 of 2Fix the marked spots · 3 left
1id,item,quantity,price,order_status
12201,al-pastor,1,9.50,delivered
22202,birria,4,11.00,refunded
32203,veggie,3,8.25,delivered
42204,pollo,2,9.00,late
52205,carnitas,1,10.00,delivered
62290,TEST,1,0.00,test
72291,TEST,1,0.00,test
82292,TEST,1,0.00,test
92206,al-pastor,4,9.50,delivered
102207,birria,3,11.00,delivered
112208,veggie,2,8.25,late
122209,pollo,1,9.00,delivered
132210,carnitas,4,10.00,refunded
142211,al-pastor,3,9.50,delivered
152212,birria,2,11.00,late
162213,veggie,1,8.25,delivered
172214,pollo,4,9.00,delivered
182215,carnitas,3,10.00,delivered
192216,al-pastor,2,9.50,late
202217,birria,1,11.00,delivered
212218,veggie,4,8.25,refunded
222219,pollo,3,9.00,delivered
232220,carnitas,2,10.00,late
NORMALLoading the editor…1/20.0s1:1

This exercise needs a keyboard. Read on, and play it at your computer.

Boss round

Stage 2 · The import format

4:25. The import tool's two rules: the last column is called status, not order_status (the one name the accountant's system lost), and every line, header included, ends in a semicolon.

Stuck? Show a hint
Pro
The rest of this lesson is in Pro

The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.

See Pro

This exercise needs a keyboard. Read on, and play it at your computer.

Boss round

Stage 3 · The notes

4:45. The report's notes: the three notes become quotes (> in front). Then you start highlighting the function's body for its indentation and, mid-stroke, see you began a line too low: the highlight is still up, so fix its start rather than starting over, and indent all three lines. Last, a doubled the.

Stuck? Show a hint
Pro
The rest of this lesson is in Pro

The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.

See Pro

This exercise needs a keyboard. Read on, and play it at your computer.

Sent, 4:58 p.m.Finish the exercise above to see it.
From memory

The whole track, from memory

Six situations from today.

Highlight to the next underscore and delete it.
scroll here, then press the keys4 keys
1 of 6
Highlight to the next underscore and delete it.

Extra practice optional

The chapter is done. These rounds keep going as long as you like: stop whenever it stops being useful.

Endless

Blocks, endlessly

Endless runs of lines missing a prefix or an ending.

Pro
The rest of this lesson is in Pro

The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.

See Pro

This exercise needs a keyboard. Read on, and play it at your computer.