Difficulty: Easy
Correct Answer: A
Explanation:
Introduction / Context:
vi provides several ways to start inserting text relative to the cursor position. Mastering these entry points accelerates editing source code and configuration files by reducing keystrokes and unnecessary cursor movement.
Given Data / Assumptions:
Concept / Approach:
The uppercase command A moves the cursor to end of line and enters insert mode, letting you append immediately. Lowercase a appends after the cursor at its current position, i inserts before the cursor, and I inserts at the first non-blank character of the line.
Step-by-Step Solution:
Press A in normal mode.The cursor jumps to the last character of the current line.vi switches to insert mode so you can type appended text.Press Esc to return to normal mode when finished.
Verification / Alternative check:
Try a to see it appends right after the cursor, not at line end. Try I to start typing at the first non-blank, which differs from A’s behavior on indented code lines.
Why Other Options Are Wrong:
a (Option B) appends after the cursor position only.i (Option C) inserts before the cursor position.I (Option D) inserts at the first non-blank of the line.
Common Pitfalls:
Final Answer:
A
Discussion & Comments