Vi Editor Question: Download Vi Editor PDF

Which command is used to replace many characters in Vi Editor?

Tweet Share WhatsApp

Answers:

Answer #1change command can be used to change a word/line.

cw change word forward
cb change word backward
c$ change from cursor to end of line
cL change from current line to and of screen
cG change from current line to and of file

or if you want to replace all occurence of some specific
character

:%s/oldText/newText/g

Answer #2:s/OldText/NewText/g

Download Vi Editor PDF Read All 14 Vi Editor Questions
Previous QuestionNext Question
Explain What does the /text command do?What is the difference between lettered buffer and temporary buffer in Vi Editor?