Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 (Fortune 01.1b1); site graffiti.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!ut-sally!ut-ngp!shell!graffiti!peter From: peter@graffiti.UUCP (Peter da Silva) Newsgroups: net.unix Subject: Re: Vi query Message-ID: <183@graffiti.UUCP> Date: Tue, 3-Sep-85 18:26:24 EDT Article-I.D.: graffiti.183 Posted: Tue Sep 3 18:26:24 1985 Date-Received: Tue, 10-Sep-85 03:41:26 EDT References: <220@ur-cvsvax.UUCP> Distribution: net Organization: The Power Elite, Houston, TX Lines: 21 > This would be a nice command to have while doing spelling corrections > in a file. The following alias puts one into 'vi' with the list > of 'misspelled' words appended. The cursor is on the last word. Change it to: alias sp 'spell \!* | tee /tmp/new$$ >> \!* ;\ mv tags /tmp/old$$;\ sed 's/^\(.*\)/\1 ?\1?/' > tags;\ rm /tmp/new$$;\ vi + \!*\ mv /tmp/old$$ tags' > Now one could hit that magic key, and each word in the list could be quickly > found and corrected. When the cursor comes full cycle (using the 'n' command), > the word could be deleted and the process repeated until the appended list is > exhausted. That is as close to an automatic spelling correcter as I want > or need. Use the 'tag' command '^]', which uses the current word as a tag. Then, viola! You have it. Thank you very much for showing *me* a great new application!