Paragraph Text Objects in Vim

Use ip for the inner paragraph and ap for the paragraph plus surrounding blank lines. They help you edit whole text blocks quickly.

Commands you practise

ip
Delete an entire paragraph of text at once. Use dip to delete a block of code while preserving the blank lines around it.
ap
ap selects an entire paragraph plus its surrounding blank line. Use dap to delete a block and automatically clean up extra spacing.

Levels

  1. Clear the Draft (easy): Empty the draft paragraph cleanly, leaving the surrounding blank lines and headers intact.
  2. Mind the Gap (medium): Delete the redundant second paragraph cleanly without leaving behind duplicate blank lines.
  3. Config Overwrite (hard): Replace the bad configuration properties with the good ones without modifying the section headers.

Each level opens a real Neovim session in your browser with a start file and a target file. Edit one into the other in as few keystrokes as you can, then race the vimbot's solution.

Part of VimGolf.ai Premium ($10 once, lifetime). Region: Text Objects: Basics. See the whole skill map.