[CLUE-Tech] vi command
Matt Gushee
mgushee at havenrock.com
Mon Apr 22 22:59:58 MDT 2002
On Tue, Apr 23, 2002 at 12:03:08AM -0400, David Jackson wrote:
> You could use the subsitute command from the ":" prompt.
> [ESC] :%s/word/WORD/g would change *all* ocurrences.
Or even better, if you're matching a regexp, you can do:
:%s/pattern/\U&/g
\U convert to uppercase
& the entire string that was matched
This works in Vim -- not sure about other flavors.
--
Matt Gushee
Englewood, Colorado, USA
mgushee at havenrock.com
http://www.havenrock.com/
More information about the clue-tech
mailing list