bees@druxy.UUCP (01/20/84)
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