Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!umbc3!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.editors Subject: Re: spelling from within vi Message-ID: <4292@umbc3.UMBC.EDU> Date: 31 Oct 90 18:27:29 GMT References: <1990Oct31.153710.7865@cec1.wustl.edu> Sender: newspost@umbc3.UMBC.EDU Reply-To: rouben@math9.math.umbc.edu.UUCP (Rouben Rostamian) Distribution: na Organization: Mathematics Department University of Maryland, Baltimore County Lines: 32 In article <1990Oct31.153710.7865@cec1.wustl.edu> abed@saturn.wustl.edu (Abed Hammoud) writes: > Is there a way I can use the unix spelling program ispell > or spell from within vi. Here are a couple of lines from my .exrc: map #S :w^M:$r!spell +${HOME}/lib/word.list % ^M:"... spell ckecking complete^M map #s :1,$w !spell +${HOME}/lib/word.list ^V| fmt ^M Both #s and #S commands check the current buffer for spelling mistakes via unix's spell(1) utility. The part "+${HOME}/lib/word.list" refers to the a file containing a private word list which will be consulted in addition to the standard dictionary. Omit that part if you do not have a personal words file. The command #s is suitable for spell-checking short files or files which you know will not have too many spelling mistakes. The misspelled words appear at the bottom of the screen and will go away when you hit the Return key. The command #S is suitable for spell-checking longer files or files which are likely to contain a large number of typos. It appends a list of misspelled words to the end of the current buffer. Note: You must enter the ^M and ^V characters in your .exrc file by typing CtrlVCtrlM and CtrlVCtrlV, respectively. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc Baltimore, MD 21228, U.S.A. internet: rostamian@umbc3.umbc.edu