Difficulty: Easy
Correct Answer: e
Explanation:
Introduction / Context:
Efficient text editing in vi (and Vim) relies on motion commands. Learning single-key motions for word-wise navigation speeds up editing dramatically. This question focuses on the motion that moves the cursor forward to the end of a word.
Given Data / Assumptions:
Concept / Approach:
vi provides word motions: w moves to the beginning of the next word, b moves backward to the beginning of the previous word, and e moves forward to the end of the current or next word. These motions can be combined with operators like d (delete) and c (change) for powerful text manipulation (for example, de deletes to the end of the word).
Step-by-Step Solution:
Verification / Alternative check:
Open any text in vi and try w, b, and e to feel the difference between beginning-of-word and end-of-word motions. Observe how punctuation and whitespace affect movement under default settings.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing e with w, forgetting to be in normal mode, or using motions without counts when large jumps are needed. Practice in normal mode to build muscle memory.
Final Answer:
e
Discussion & Comments