Use paragraph boundaries

0 of 3

The technique

Your textVim mode: Normal
Delete the first note and the blank line after it. Before: First note / still first / / Second note. After: Second note.

dip would keep the blank line. Code braces do not make paragraphs; only blank lines do.

Keys in this lesson

}
Next blank line between paragraphs.
{
Previous blank line between paragraphs.
dip
Delete the paragraph, keep the blank line.
dap
Delete the paragraph and a blank line.

Before this lesson: Words and operators.

More about this lesson

Distinguish blank-line paragraphs from parsed code blocks.

A paragraph is separated by blank lines. ip names its text; ap also takes a neighbouring blank line. } moves toward the next paragraph boundary. Code braces and indentation do not define these paragraphs; use this on prose or comment sections when those blank-line boundaries fit the task.

Example

In two notes separated by a blank line, dip removes the current note while leaving the separator. dap removes a neighbouring separator as well. Compare the complete target.

Use Reset to try again.

Guides on this topic

Exercise 1 of 3

0keys

par 1

Move to the boundary after the current paragraph without editing it. Finish at line 3, column 1.

Your textVim mode: Normal

Desired result

Yours

Par

Keyboard shortcuts
Ctrl+Enter
Check the result
Ctrl+Alt+U
Undo the last change
Ctrl+Alt+H
Show the next hint
Ctrl+Alt+R
Reset the exercise
Ctrl+Alt+P
Previous exercise
Ctrl+Alt+N
Next exercise
Enter
After a solve: the next step

Ctrl+Alt shortcuts leave Vim's own keys alone. On a Mac, Control and Option.