Which of the following keys is used to replace a single character with new text?
-
S
-
s
-
r
-
C
In standard editors like vi/vim, the 's' key substitutes the character under the cursor with new text, allowing single-character replacement. 'S' replaces the whole line, 'r' replaces without entering insert mode, and 'C' changes to the end of the line.
This is a vi/vim editor question. The 's' command deletes the single character under the cursor and drops you into insert mode, letting you type in any amount of new text to replace it — matching 'replace a single character with new text.' Uppercase 'S' substitutes the entire line, not just one character. Lowercase 'r' replaces exactly one character with exactly one other typed character (no insert mode, no arbitrary-length text). 'C' changes text from the cursor to the end of the line, not a single character.