What command is used with vi editor to delete three words? A. 3$d B. 3 dw C. 3 x D. 3 dd E. None of the above

3$d
3 dw
3 x
3 dd E. None of the above

The correct answer is: C. 3 dw

The dw command deletes the next word. So, 3 dw will delete the next three words.

The 3$d command deletes three characters from the end of the line.

The 3 x command deletes the next three characters.

The 3 dd command deletes the next three lines.

I hope this helps!

Exit mobile version