Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
Compare the words of one or more named files with the system dictionary. Display unrecognized words at the top of the screen, accompanied by possible correct spellings, and allow editing via a series of commands.
Options
-b
Back up original file in filename.bak.
-B
Count two correctly spelled words without a space between them as a spelling error.
-C
Count two correctly spelled words without a space between them as a legitimate compound word.
-dfile
Search file instead of standard dictionary file.
-H
File is in HTML/XML format.
-m
Suggest combinations of known roots and affixes, even if the result is not known. For example, "generous" and "ly" are known, so "generously" would be suggested as a word, even if it were not in the dictionary.
-n
Expect nroff or troff input file.
-P
Do not guess new words using known roots and affixes. The opposite of -m.
-pfile
Search file instead of personal dictionary file.
-t
Expect TEX or LATEX input file.
-wchars
Consider chars to be legal, in addition to a-z and A-Z.
-x
Do not back up original file.
-B
Search for missing blanks (resulting in concatenated words) in addition to ordinary misspellings.
-C
Do not produce error messages in response to concatenated words.
-Lnumber
Show number lines of context.
-M
List interactive commands at bottom of screen.
-N
Suppress printing of interactive commands.
-P
Do not attempt to suggest more root/affix combinations.
-S
Sort suggested replacements by likelihood that they are correct.
-Ttype
Expect all files to be formatted by type.
-Wn
Never consider words that are n characters or fewer to be misspelled.
-V
Use hat notation (^L) to display control characters, and M- to display characters with the high bit set.
Interactive commands
?
Display help screen.
space
Accept the word in this instance.
number
Replace with suggested word that corresponds to number.
!command
Invoke shell and execute command in it. Prompt before exiting.
a
Accept word as correctly spelled, but do not add it to personal dictionary.
i
Accept word and add it (with any current capitalization) to personal dictionary.
l
Search system dictionary for words.
q
Exit without saving.
r
Replace word.
u
Accept word and add lowercase version of it to personal dictionary.