“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).
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.
Sign in free to practice →