Difficulty: Easy
Correct Answer: R
Explanation:
Introduction / Context:
Vi provides both single-character replacement and continuous replacement modes. Knowing the difference is important for efficient editing when making larger inline changes without deleting whole words or lines.
Given Data / Assumptions:
Concept / Approach:
The uppercase R enters replace mode, where every keystroke overwrites existing characters until you press ESC. Lowercase r replaces only one character. This makes R the correct choice for replacing text from the cursor onward.
Step-by-Step Solution:
Verification / Alternative check:
Compare with lowercase r: rX replaces one character with X only. With R, typing 'HELLO' overwrites five existing characters until stopped.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
R.
Discussion & Comments