[net.unix] Undocumented vi command

ken@turtlevax.UUCP (Ken Turkowski) (01/13/85)

When in vi visual or open mode, try typing a tilde (~):  it converts
from upper to lower case and vice versa, advancing the position of the
cursor in the process.
-- 
Ken Turkowski @ CADLINC, Menlo Park, CA
UUCP: {amd,decwrl,nsc,seismo,spar}!turtlevax!ken
ARPA: turtlevax!ken@DECWRL.ARPA

robert@gitpyr.UUCP (Robert Viduya) (01/16/85)

><
> When in vi visual or open mode, try typing a tilde (~):  it converts
> from upper to lower case and vice versa, advancing the position of the
> cursor in the process.

I discovered this nifty feature a couple of weeks ago.  It was described
in the vi documentation (SysV R.2).

			robert
-- 
Robert Viduya
    Office of Computing Services
    Georgia Institute of Technology, Atlanta GA 30332
    Phone:  (404) 894-4669

...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert
...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert

abm@hlwpc.UUCP (A. B. Myers) (01/16/85)

<<<>>>
I tried responding to the poster, but the mail came back
undelivered.  Perhaps this is worth posting anyway.  The
original poster claimed he'd found an undocumented vi feature,
the tilde (~), which changes upper case to lower and vice versa.
In fact, this neat command IS documented in a brochure
copyrighted by Cscapes, P.O. Box 2233, Everett, WA 98203
The brochure fan-folds out from a tiny (2X7 inches) size.
Very handy.  The last page says, Other C & UNIX References are
published by: Specialized Systems Consultants, P.O. Box  7,
Northgate Station, Seattle, WA 98125-0007  Phone 206-FOR-UNIX...
and it lists these titles: C Reference Card, C Library Reference
for UNIX, UNIX Command Summary, VI Reference (This card), and
Custom References.
			A.B.Myers
			AT&T Bell Laboratories

Greg McGary <lcc.gm@UCLA-LOCUS.ARPA> (01/19/85)

>	When in vi visual or open mode, try typing a tilde (~):  it converts
>	from upper to lower case and vice versa, advancing the position of the
>	cursor in the process.

Unfortunately, the `~' command doesn't want to move ahead when prefixed by
a repeat factor.  It just sits there and converts the same character N times!

Sh?t!

			Greg McGary
			Locus Computing Corp.
						lcc!gm@ucla-cs
	 {ihnpr,randvax,sdcrdcf,ucbvax}!ucla-cs!lcc!gm
		{trwspp,ucivax}!ucla-va!ucla-cs!lcc!gm
					   trwb!lcc!gm

conde.osbunorth@XEROX.ARPA (01/21/85)

It's documented in some Berkeley manuals, so you may want to pick them
up to get info on other commands you may not have in your documents.
Incidentally, it does not work like general commands. For example, you
cannot say "~w" to make the word upper/lower case. Most other standard
commands folloow the command-movement convention.

mrg@ptsfa.UUCP (Maria Gonzalez) (01/23/85)

> >	When in vi visual or open mode, try typing a tilde (~):  it converts
> >	from upper to lower case and vice versa, advancing the position of the
> >	cursor in the process.
> 
> Unfortunately, the `~' command doesn't want to move ahead when prefixed by
> a repeat factor.  It just sits there and converts the same character N times!
> 
> Sh?t!
> 
> 			Greg McGary
> 			Locus Computing Corp.
> 						lcc!gm@ucla-cs
> 	 {ihnpr,randvax,sdcrdcf,ucbvax}!ucla-cs!lcc!gm
> 		{trwspp,ucivax}!ucla-va!ucla-cs!lcc!gm
> 					   trwb!lcc!gm

	Yes, unlike most of vi commands this one cannot be 
prefixed by a number.
			mrg