Learn Vim / Indent the block — vim

Indent the block — vim

The answerCanonical keystrokes: >ip.

Try it on a real buffer

This whole block needs to move one level right. From anywhere inside it, indent the entire paragraph in one stroke with >ip.

enable_cache
enable_logs
enable_metrics
retry_on_fail

Canonical solution: >ip · par: 3 keystrokes (vimgolf rules — every keypress counts).

Why it works

>ip indents an “inner paragraph” — every line up to the surrounding blank lines — in a single stroke. Operators combine with text objects here just like anywhere else: >ip, =ip, dip.

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

Practice free — no signup →

Keep going