Vidyalelo
Computer Science · Q26

UNIX

Engineering and GATE · Computer Science · question 26

Q26

Which command will be used with vi editor to insert text to left of cursor?

A.
s
B.
S
C.
a
D.
i
Answer
E.
None of the above

Answer: Option D

Solution

Answer: Option D
Solution:
In the vi editor, the i command is used to insert text before the cursor position. Conversely, the a command is used to insert text after the cursor position. Therefore, to insert text to the left of the cursor, you would use the i command.
So, i is the command used with the vi editor to insert text to the left of the cursor.