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 · par: 5 keystrokes (vimgolf rules — 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.)

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.

Practice free — no signup →

Keep going