Difficulty: Easy
Correct Answer: /
Explanation:
Introduction / Context:
Searching text efficiently is central to navigating in vi/Vim. Different search commands look forward or backward, and knowing the right one for forward search saves significant time.
Given Data / Assumptions:
Concept / Approach:
The / command starts a forward search. After typing /pattern, pressing Enter will move the cursor to the next occurrence of 'pattern' after the cursor. Typing n repeats the search forward; N repeats it in the opposite direction.
Step-by-Step Solution:
Verification / Alternative check:
Compare with ?pattern, which searches backward. Try on a sample file with repeated words to confirm direction.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
/.
Discussion & Comments