john@genrad.UUCP (John Nelson) (01/17/84)
This was posted to the net some time ago, but since I have seen some activity on the net about this lately, I decided it was worth a reprint. This is a spell facility for vi. The entire active file is run through spell (actually the script "vispell") by typing function key number two, leaving a list of misspelled words at the end of the buffer (which can be manually edited to take out special words and proper names). Subsequent invocations of function key number one will grab the next misspelled word in the list, and search for it (using word delimitors so that there's no mistake). This is the script vispell. You will probobly have to delete the first line if you are not running a BSD system. #! /bin/sh tee /tmp/vis$$ echo SpellingList spell /tmp/vis$$ | tee -a $HOME/.sp_errs rm /tmp/vis$$ Ok, now add these lines to your ~/.exrc file. note that none of the carets ("^") below should actually be inserted in the file, rather the sequence "^V" indicates the character control V. "^[" is escape. These characters can be inserted in vi by prefixing the character with control V (so that escape could be entered by the sequence ^V<ESCAPE>) map #1 Gi1G/\<^V^[A\>^V^["add@a map #2 1G!Gvispell^V^[