Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!dogie.macc.wisc.edu!decwrl!nsc!taux01!amos From: amos@taux01.UUCP (Amos Shapir) Newsgroups: comp.unix.wizards Subject: Re: HELP converting filenames! Summary: More useful macros Message-ID: <2698@taux01.UUCP> Date: 10 Oct 89 07:08:45 GMT References: <1983@convex.UUCP> Organization: National Semiconductor (IC) Ltd, Israel Home of the 32532 Lines: 26 Hdate: 11 Tishrey 5750 Since we are at it, here are some useful macros for spell checking out of my own grab bag: (I map them to function keys 1-3; of course you can change it to any other unused key) " Use the 4 letters starting at the cursor as a word to look up " in the standard 'look' dictionary. :map #1 4y O!look ^[p"xdd:@x^[ " Run the current file through spell, and put the resulting list of " misspelled words at the end of the file. :map #2 :$r!spell %^[ " Now do 'G' and start looking over the list; for each word, either " do 'dd' if it's irrelevant, or do 'F3' to put the cursor on it. :map #3 I/\<^[A\>^["xdd:@x^[n " An 'n' will take you to the next occurrence of the same word. When " you're through with it, do a 'G' to look at the next one. -- Amos Shapir amos@taux01.nsc.com or amos@nsc.nsc.com National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel Tel. +972 52 522261 TWX: 33691, fax: +972-52-558322 34 48 E / 32 10 N (My other cpu is a NS32532)