Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!zephyr.ens.tek.com!tektronix!percy!nosun!tessi!larry@tessi.uucp From: larry@tessi.uucp (Larry Gillespie) Newsgroups: comp.editors Subject: Okay, now, how to you change case of a *word* in vi? Message-ID: <622@tessi.UUCP> Date: 14 Dec 90 21:10:49 GMT Sender: news@tessi.UUCP Organization: Test Systems Strategies, Beaverton, Oregon Lines: 23 After seeing people discussing how to change an entire file, or a line, to upper or lower case, I'd like to ask a harder one. For years, I've tried to figure out a way to change the case of just a single word (or, optionally, 'W'ord), and, extrapolating, a number of words (using a range specification). A friend of mine figured out a most ineligant way of doing a single word, but it's not acceptable, because the display does lots of ugly things while it's working. And, it can't take an argument. Further, I also want a real hard one. I want to be able to switch the case of what is found there, not just up-case or low-case everything. I guess what I'd like is for '~' to be able to take a range argument. That not being the case, have you or anybody you know got the wizardry to to that (hopefully elegantly)? I am the humble admirer of the one with the answers to these questions that I pose. -Larry Gillespie Test Systems Strategies, Inc., 8205 SW Creekside Pl., Beaverton, Ore. 97005 (503) 643-9281 tessi!larry@uunet.UU.NET