Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker.mit.edu!mintaka!ogicse!pdxgate!eecs!kirkenda From: kirkenda@eecs.cs.pdx.edu (Steve Kirkendall) Newsgroups: comp.editors Subject: Re: Okay, now, how to you change case of a *word* in vi? Summary: the meaning of v Message-ID: <1021@pdxgate.UUCP> Date: 1 Jan 91 19:58:26 GMT References: <622@tessi.UUCP> <111467@convex.convex.com> <2567@root44.co.uk> Sender: news@pdxgate.UUCP Reply-To: kirkenda@eecs.UUCP (Steve Kirkendall) Organization: Portland State University, Portland, OR Lines: 32 In article <2567@root44.co.uk> gwc@root.co.uk (Geoff Clare) writes: > >On a related note, does anyone know if POSIX.2a has adopted the current >behaviour of "~", or have POSIX done the decent thing and invented a >proper "exchange case" command? Since "v" is currently unused that >would be a good choice. It would be great to be able to use "vw" to >change case of a word, "vt." to change case up to a "." character, >"vv" to change a whole line, etc. > >Whoever originally implemented "~" as such a horrible botch instead of >making it work like "d", "y", and "c" should be shot! I'd vote for accepting STEVIE's "tildeop" option as a standard. By default, STEVIE uses ~ in the standard way, but after you do a ":set tildeop", the ~ command becomes an operator like the c/d/y//! commands. Or maybe we want a variety of capitalization commands: one to flip cases, one to make uppercase, one to make lowercase, one to capitalize text using the conventions for titles... What do you bet EMACS already has this? :-) New subject: In the next version of Elvis, the "v" key will be used to visibly mark one some text for one of the operator commands. You press "v" and the character that the cursor's on will be hilighted. As you move the cursor around, the hilighted area stretches to include all characters between the original position and the current cursor position. When you hit one of the operator keys, the operator is *immediately* applied to the hilighted text. The "Shift-V" key will do the same thing, but it will act on whole lines instead of characters. ------------------------------------------------------------------------------- Steve Kirkendall kirkenda@cs.pdx.edu Grad student at Portland State U.