Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hsi.UUCP Path: utzoo!linus!philabs!seismo!hao!kpno!hsi!hogue From: hogue@hsi.UUCP Newsgroups: net.general Subject: Re: Running spell from VI Message-ID: <106@hsi.UUCP> Date: Tue, 17-Jan-84 14:35:33 EST Article-I.D.: hsi.106 Posted: Tue Jan 17 14:35:33 1984 Date-Received: Thu, 19-Jan-84 01:21:28 EST References: <116@ixhte.UUCP> Organization: Health Systems Intl. New Haven,CT Lines: 30 Place the following 5 lines in a file "vispell" and place the file in some system bin area #! /bin/sh tee /tmp/vis$$ echo SpellingList spell /tmp/vis$$ rm /tmp/vis$$ Then add the following two lines to you .exrc file. map #1 Gi/\"add@a map #2 1G!Gvispell Where #1 #2 are your function keys. (Note you can pick any suitable keys for this.) Then when in vi merely strike the #2 key and the current contents of you buffer will be sent to spell. The output of spell will then be appended to the current vi buffer. Now type #1. This will delete the last line in the buffer and then search for that line in the file. Since the last line is a word that spell felt was wrong you will be searching for that misspelled word. When you have used up the output from spell the search pattern fails. This worked fine under 4.1 but I seem to have a minor problem under 4.2 I get an extraneous error message at the top of the file. "ioctl: Operation not supported on socket" You figure that one out (i'm lazy!). It works just fine after a dd to remove the error message. - jim hogue {ihnp4, kpno}!hsi!hogue