Delete the three CUT lines: j onto the first one, V for line-wise visual, jj to stretch the selection, then d.
KEEP the opening line CUT this whole stanza CUT this line as well CUT this final offender KEEP the closing line
Canonical solution: j V jj d · par: 4 keystrokes (vimgolf rules — every keypress counts).
V selects whole lines no matter where the cursor sits. Great when the unit of work is “these lines” — you see exactly what's about to go.
| Keys | What it does |
|---|---|
| Vjj | select three lines |
| V} | select to the end of the paragraph |
| VG | select to the end of the file |
Reading about keystrokes doesn't build keystrokes. Try this in a real vim buffer right now — the “Line-wise vision” mission takes about a minute.
Practice free — no signup →