Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!ames!ncar!umigw!mthvax!wb8foz From: wb8foz@mthvax.cs.miami.edu (David Lesher) Newsgroups: comp.unix.questions Subject: vi macro -- back up by wordends Keywords: vi, macro, cursor movement Message-ID: <1990Jun10.162220.15756@mthvax.cs.miami.edu> Date: 10 Jun 90 16:22:20 GMT Reply-To: wb8foz@mthvax.cs.miami.edu (David Lesher) Distribution: na Organization: NRK Clinic for habitual NetNews abusers Lines: 20 E-Mail, please.. The expire vulture awaits my departure with glee.. Comp.editors came up empty. I guess all the experts are over here...;_} I'm trying to build a vi macro that will backup by the ENDS of words. For example, in the previous sentence, it would go: . s f S e y p ......... and so forth. My crude attempts break if there is a single-letter word or a punct. mark involved. Of course, if you are at the beginning of a word, it should only go across the space, etc.. Suggestions? -- A host is a host from coast to coast.....wb8foz@mthvax.cs.miami.edu & no one will talk to a host that's close............(305) 255-RTFM Unless the host (that isn't close)......................pob 570-335 is busy, hung or dead....................................33257-0335