Mission 42 / 52• Text Objects - Paragraphs
Delete Inside Paragraph
In Vim, a 'paragraph' (`p`) is any contiguous block of non-empty lines.
`dip` deletes the current block of text, leaving surrounding blank lines intact.
Delete inside paragraph
- dipdelete the entire paragraph/block (preserves blank lines)
Press Enter to start
1function temporaryHelper() {2 console.log("temp");3 return 123;4}5 6function realFunction() {7 return 456;8}Move anywhere inside `temporaryHelper()` and type `dip`. The entire function block is deleted at once.
Now it's your turn!
0 / 4 tasks complete0.0s / 15s par0 / 12 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Remove the legacy paragraph with dip while preserving the blank line.
Expected result
// Active block const ready = true;
Show hint
Use dip inside the legacy block.
Press Enter to start
1// Legacy block2const old = true;3 4// Active block5const ready = true;jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next