home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 16045 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.0 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!warwick!uknet!cvedg!medusa.prime.com!mike
  2. From: mike@CIS.Prime.COM (Mike Causer)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Spell checker from inside vi
  5. Message-ID: <1993Jan28.102248.4507@medusa.prime.com>
  6. Date: 28 Jan 93 10:22:48 GMT
  7. References: <1993Jan26.170105.4573@doug.cae.wisc.edu>
  8. Sender: news@medusa.prime.com
  9. Reply-To: mike@CIS.Prime.COM
  10. Organization: Computervision R&D Ltd
  11. Lines: 13
  12.  
  13. >In article <C1HD54.Iv@news.udel.edu> william@bach.udel.edu (Wild William) writes:
  14. >>Is there a simple way to do spell checking on the current file from
  15. >>inside vi?
  16. >>
  17. >>i tried {!}spell but strange codes show up and it doesn't show any
  18. >>alternatives etc.
  19.  
  20. The following works for ispell, put it into your .exrc file and hit S in
  21. command mode, it does the whole file however.  
  22.  
  23. map S :1,$w! /tmp/rcwspell^M:!ispell /tmp/rcwspell^M^M:1,$d^M:r /tmp/rcwspell^M
  24.  
  25. Mike  Causer                                                (mike@cis.prime.com)
  26.