[CLUE-Tech] vi command

jbrockmeier at earthlink.net jbrockmeier at earthlink.net
Mon Apr 22 21:38:30 MDT 2002


On Tue, 23 Apr 2002, David Jackson wrote:

> Jason --
> You could use the subsitute command from the ":" prompt.
> [ESC] :%s/word/WORD/g would change *all* ocurrences.

It's also possible to change multiple letters by using a
number. For example, if the word is 8 characters long, use
8~

Also, you can do g~w to change the current word (forwards)
or g~b to change the current word (backwards) or g~~ for
the entire line. 

This is for Vim - I'm not sure if it works in other 
vi clones. 

Take care,

Zonker (confirmed vim addict)
-- 
Joe 'Zonker' Brockmeier -=- jbrockmeier at earthlink.net
http://www.DissociatedPress.net/
ymessenger: jbrockmeier / AIM: ZonkerJoe
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Organ transplants are best left to the professionals.




More information about the clue-tech mailing list