home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!pki-nbg!pki-nbg.philips.de!ln_smr
- From: ln_smr@pki-nbg.philips.de (Stephen Riehm)
- Newsgroups: comp.unix.questions
- Subject: Re: Spell checker from inside vi
- Message-ID: <ln_smr.728209122@pki-nbg.philips.de>
- Date: 28 Jan 93 08:18:42 GMT
- References: <C1HD54.Iv@news.udel.edu> <1993Jan26.170105.4573@doug.cae.wisc.edu>
- Sender: news@pki-nbg.philips.de
- Reply-To: ln_smr@pki-nbg.philips.de
- Lines: 44
-
- saunders@luther.che.wisc.edu (Brian E. Saunders) writes:
-
- >In article <C1HD54.Iv@news.udel.edu> william@bach.udel.edu (Wild William) writes:
- >>Is there a simple way to do spell checking on the current file from
- >>inside vi?
- >>
- >>i tried {!}spell but strange codes show up and it doesn't show any
- >>alternatives etc.
-
- >I can pipe the lines through spell by going to the command line and typing
- >"1,$!spell", but unfortunately the output replaces all of your lines! Does
- >anybody know how to redirect the output to the bottom of the file you are
- >currently working on? This should be easy, but I don't know how to do it.
-
- if you have the chance, get a copy of ispell (interactive spell). It
- actually has the courtesy to prompt you with suggested corrections
- etc, as opposed to spell's habit of simply dumping a list of wrong
- words on your doorstep.
-
- If you have ispell, you can then create the following mapping:
- map _S :w!^V^M:!ispell %^V^M:e!^VM^VM
- (The two ^V^M's at the end are intentional, I don't know why, but
- just having one doesn't work for me)
-
- If you still insist on using spell, try the following mapping:
- map _S :w!^V^M:!spell % > _sp^V^M:e! _sp^V^M^V^M
- This will put the badly spelt words into a file called _sp, and
- automatically start editing it. You can then swap between the original
- file and the list by using ^^ (ctrl-shift-6) or :e#.
-
- in both cases I have _S as the spell check macro name, you can of
- course call it whatever you like :-)
-
- best of luck!
-
- --------------------------------------------------------------------
- Stephen Riehm Configuration Management _-_|\
- ln_smr@pki-nbg.philips.de Philips Kommunikations Industrie / \
- Work: +49 911 526 2975 Nu"rnberg, Germany \_.-.!/
- Fax: +49 911 526 3678 "I was there, now I am here!" v
- "My company speaks another language, I CAN'T speak on its behalf"
- PS: You may think I am joking, I can't speak the language that well so
- PLEASE DON'T REPLY IN GERMAN!
- - thanks -
-