Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!grapevine!male!texsun!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.editors Subject: Re: Rehash Needed Re: calling spell checker from within VI Message-ID: <1990Dec18.075224.25831@convex.com> Date: 18 Dec 90 07:52:24 GMT References: <1990Dec14.195857.14825@informix.com> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 41 Nntp-Posting-Host: pixel.convex.com From the keyboard of billd@infmx.informix.com (William Daul): :Could someone send me the essence of the discussion a few weeks ago :regarding calling a spell checker program from within VI? Well, I can't give you its essence, as my newsrc was mutilated and I wasn't reading the group at the time because of this, but here's what I use: map ^V^I \ " so can use both TAB and \ for meta-key map \s :w^Mgo^V^[:$r!spell %^M " spell the file, placing errors at bottom, use \n and n " to find next occurrences map \/ dePo/\<^V^[pA\>^V^["wdd@w " find current word, uses w buffer map \n Gdd\/ " for find next spelling error Be careful of that last one, of course. This is really quite quick. I often make a temporary map like this: map = \n to make it easier to type while running down the list. Oh, the Meta-/ macro isn't 100% right always, but I haven't taken the time to fix it. You may see what I mean. Still, I use it a lot, although not on read-only files, alas. The truth is I don't use Meta-s much anymore because I've got news and notes and MH all rigged up to pop me into ispell when I'm done editing a posting of some sort. --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "With a kernel dive, all things are possible, but it sure makes it hard to look at yourself in the mirror the next morning." -me