Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VI

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Anyone remember what the command to replace one word with another in VI is ?? Cheers,
71
 

" :1,$s/adcb/efgh/g " this substitutes all occurences of abcd with efgh.

sendhilk
 
If you have the cursor at the start of a word, the command to change the word is cw

Greg.
 
Please note that the ;g at the end of each command will change every occurrence of the word.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top