[CLUE-Tech] vi command

Jason Friedman jason at powerpull.net
Wed Apr 24 22:33:46 MDT 2002


Thanks everyone.  Just FYI, I added this line to my .vimrc:
map ^T g~w              " toggle case of a word

The ^T is made by typing CTRL-V CTRL-T.
So now, it's CTRL-T for toggle -- handy I think.

Jason
On 2002.04.23 03:38 jbrockmeier at earthlink.net wrote:
> 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