home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 16017 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!sgiblab!munnari.oz.au!bruce.cs.monash.edu.au!merlin!cerberus!mips!glenn
  3. From: glenn@mips.bhpese.oz.au (Glenn McNally)
  4. Subject: Re: Spell checker from inside vi
  5. Organization: BHP, Newcastle, Australia
  6. Date: Thu, 28 Jan 1993 05:30:49 GMT
  7. Message-ID: <1993Jan28.053049.13343@cerberus.bhpese.oz.au>
  8. References: <C1HD54.Iv@news.udel.edu> <1993Jan26.170105.4573@doug.cae.wisc.edu> <1993Jan27.095737.16318@ncrcae.ColumbiaSC.NCR.COM>
  9. Sender: news@cerberus.bhpese.oz.au (News System)
  10. Lines: 36
  11.  
  12. raj@grok101.ColumbiaSC.NCR.COM (0000-Admin(0000)) writes:
  13.  
  14. >In article <1993Jan26.170105.4573@doug.cae.wisc.edu>, saunders@luther.che.wisc.edu (Brian E. Saunders) writes:
  15. >|> In article <C1HD54.Iv@news.udel.edu> william@bach.udel.edu (Wild William) writes:
  16. >|> >Is there a simple way to do spell checking on the current file from
  17. >|> >inside vi?
  18. >|> >
  19. >|> >i tried {!}spell but strange codes show up and it doesn't show any
  20. >|> >alternatives etc.
  21. >|> 
  22. >|> I can pipe the lines through spell by going to the command line and typing
  23. >|> "1,$!spell", but unfortunately the output replaces all of your lines!  Does
  24. >|> anybody know how to redirect the output to the bottom of the file you are
  25. >|> currently working on?  This should be easy, but I don't know how to do it.
  26. >|> -- 
  27. >|> 
  28. >|> Brian E. Saunders            saunders@luther.che.wisc.edu
  29.  
  30. >Brian & William,
  31.  
  32. >You can try the following on the command line of vi:
  33. >:!spell % >> %
  34.  
  35. >This will append the output of the command "spell" to the eof.
  36. >The "%" means the current file that is being edited.
  37. >-raj
  38. >1/27/93
  39.  
  40. also try :%w !spell
  41.  
  42. Writes (w) all lines (%) to command (!) spell.
  43.  
  44. glenn
  45. -- 
  46. Glenn McNALLY   BHP Information Technology, Newcastle, NSW, Australia.
  47. INTERNET: glenn@mips.bhpese.oz.au                PHONE: +61 49 402163
  48.