Learn Vim / To the blank line — vim

To the blank line — vim

The answerCanonical keystrokes: d}.

Try it on a real buffer

Delete the first paragraph without counting its lines. From the top, delete to the next blank line with d} (} jumps to the paragraph boundary).

intro line one
intro line two
intro line three

the second paragraph stays

Canonical solution: d} · par: 2 keystrokes (vimgolf rules — every keypress counts).

Why it works

{ and } jump backward and forward to the nearest blank line — the boundaries of a paragraph. As motions they power d}, y}, c}: operate on a whole block without knowing how many lines it has.

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

Practice free — no signup →

Keep going