Learn Vim / Shout the acronym — vim

Shout the acronym — vim

The answerCanonical keystrokes: $ gUiw.

Try it on a real buffer

“http” should be “HTTP”. Jump to the end of the line with $, then uppercase the whole word with gUiw.

preferred protocol is http

Canonical solution: $ gUiw · target: 5 keystrokes — the fewest that solve it (every keypress counts).

Why it works

gU uppercases, gu lowercases, g~ toggles — each takes a motion or text object. gUiw upper-cases the inner word from anywhere inside it. (~ alone flips just the character under the cursor.)

▶ live vim buffertarget 5 keystrokes
“http” should be “HTTP”. Jump to the end of the line with $, then uppercase the whole word with gUiw.

Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Shout the acronym” mission takes about a minute.

Sign in free to practice →

Keep going