Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ucsd!rutgers!bellcore!faline!thumper!ulysses!mhuxo!mhuxt!mhuxi!mhuxh!mhuxu!m10ux!faf From: faf@m10ux.UUCP ( MHx5563) Newsgroups: comp.editors Subject: Re: vi macros to convert the case of a word Summary: modified macro to handle autoindent Keywords: fun fun fun Message-ID: <681@m10ux.UUCP> Date: 9 Sep 88 15:59:18 GMT References: <8686@ihlpb.ATT.COM> Organization: AT&T Bell Labs, Murray Hill Lines: 14 In article <8686@ihlpb.ATT.COM>, bdewbank@ihlpb.ATT.COM (Ewbank) writes: > Recently, there was a question about how to convert the case of a word in vi. > Just for fun, I tried to write a macro...and succeeded! > .. macro follows > I modified the macro to convert the case of a word to work when autoindent is set. The following line should be stored in $HOME/.exrc Note than characters preceded by ^ must be converted to control characters and ^[ must be converted to map ^T i^M^[Ea^M^[-y$Pa^M^[-:s/^[ ]*//^M:s/./\~/g^M0"zd$+@z--4J Jon Eiseman, AT&T Bell Labs, att!m21ux!jon