Difficulty: Easy
Correct Answer: j
Explanation:
Introduction / Context:
vi is a modal editor with distinct normal and input modes. Normal mode focuses on navigation and structural edits, while input (insert/replace) modes accept literal text. Recognizing which keystrokes change modes is critical to editing efficiently and avoiding unintended modifications.
Given Data / Assumptions:
Concept / Approach:
Commands i (insert before cursor), a (append after cursor), A (append at end of line), and R (replace mode) all enter an input context where typed characters are inserted into the buffer. In contrast, j is a movement command that moves the cursor down one line and keeps you in normal mode without accepting typed text as input.
Step-by-Step Solution:
Press i → editor enters insert mode; status often shows -- INSERT --.Press a → append after cursor; input mode begins.Press A → jump to EOL and begin appending; input mode.Press R → enter replace mode; typing overwrites characters.Press j → cursor moves down; no mode change to input occurs.
Verification / Alternative check:
Observe the mode indicator in Vim or attempt to type letters after pressing j; the letters will be interpreted as further commands, confirming normal mode persists.
Why Other Options Are Wrong:
i starts insert mode immediately.a and A append and therefore enter input mode.R starts replace (input) mode until Esc is pressed.
Common Pitfalls:
Final Answer:
j
Discussion & Comments