Use paragraph boundaries
The technique
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.