Mission 45 / 52• Text Objects - Paragraphs

Paragraphs Review

Paragraph text objects empower you to reorganize files at a high structural level.

Paragraph text objects summary

  • dipdelete block without blank lines
  • dapdelete block with blank line
  • cipchange entire block
1
const envA = "dev";
2
const portA = 3000;
3
4
const envB = "prod";
5
const portB = 8080;

Practice `dip` and `dap` on the environment blocks above.

Now it's your turn!

0 / 4 tasks complete0.0s / 30s par0 / 56 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.

1
// Legacy block
2
const old = true;
3
4
// Active block
5
const ready = true;
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next