Difficulty: Easy
Correct Answer: }
Explanation:
Introduction / Context:
Efficient navigation in vi relies on motion commands for words, sentences, and paragraphs. Paragraph motions are especially useful when editing prose, documentation, or code comments separated by blank lines or section macros.
Given Data / Assumptions:
Concept / Approach:
In vi, '}' advances the cursor to the next paragraph boundary, effectively moving you past the end of the current paragraph and onto the first non-blank line of the next block. The inverse motion '{' moves to the previous paragraph boundary. Other motions like '$' and '|' operate within the current line only and do not consider paragraph structures.
Step-by-Step Solution:
Verification / Alternative check:
Test in a file with multiple blank-line-separated paragraphs. Press } repeatedly to step through paragraphs. Confirm that '$' only moves to end-of-line and does not change paragraphs.
Why Other Options Are Wrong:
Common Pitfalls:
Misconfigured paragraph macros or unusual file formatting may alter boundary detection; ensure blank lines or proper macros exist for predictable movement.
Final Answer:
}
Discussion & Comments