Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druxy.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!burl!hou3c!hocda!houxm!ihnp4!drutx!druxy!bees From: bees@druxy.UUCP Newsgroups: net.followup Subject: an additional spell from vi macro Message-ID: <912@druxy.UUCP> Date: Fri, 20-Jan-84 14:45:16 EST Article-I.D.: druxy.912 Posted: Fri Jan 20 14:45:16 1984 Date-Received: Sat, 21-Jan-84 07:21:22 EST References: <261@inuxa.UUCP> Organization: AT&T Information Systems Laboratories, Denver Lines: 32 A third macro for spelling can be set up to add words to your own spelling file. First, change the 'vispell' file such that the spell command contains a personal dictionary: # vispell tee /tmp/vis$$ echo SpellingList spell +$HOME/lib/wwb/spelldict /tmp/vis$$ rm /tmp/vis$$ I happen to use the file that the Writer's Work Bench (TM) system uses. This file contains words that are not misspelled, but you may use frequently. Then set up a third macro like #3 below: map #1 1G!Gvispell^[ map #2 GI/\<^[A\>^["zdd@z map #3 u!Lsort -u -o $HOME/lib/wwb/spelldict $HOME/lib/wwb/spelldict -^[ I include #1 and #2 for reference. What happens is: if you do a #2 to find the next misspelled word, and you see it is a word you would like to add to your personal dictionary, do a #3. As previously said, #1, #2 and #3 refer to your own macro or function key strings and ^[ is an ESC. #3 assumes a #2 has just been done, because it does an undo to get the word back on the last line. There should be a better way to do this... it should get the word from buffer z somehow. Any suggestions? Ray Davis AT&T Information Systems Laboratories Denver {ihnp4|hogpc}!druxy!bees (303)538-3991