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

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!emory!gwinnett!amfent!amf
  2. From: amf@amfent.gwinnett.com (Andy Feibus)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Spell checker from inside vi
  5. Message-ID: <FHi2XB3w165w@amfent.gwinnett.com>
  6. Date: Wed, 27 Jan 93 09:37:38 EST
  7. References: <1993Jan26.170105.4573@doug.cae.wisc.edu>
  8. Lines: 30
  9.  
  10. saunders@luther.che.wisc.edu (Brian E. Saunders) writes:
  11.  
  12. > In article <C1HD54.Iv@news.udel.edu> william@bach.udel.edu (Wild William) wri
  13. > >Is there a simple way to do spell checking on the current file from
  14. > >inside vi?
  15. > >
  16. > >i tried {!}spell but strange codes show up and it doesn't show any
  17. > >alternatives etc.
  18. > I can pipe the lines through spell by going to the command line and typing
  19. > "1,$!spell", but unfortunately the output replaces all of your lines!  Does
  20. > anybody know how to redirect the output to the bottom of the file you are
  21. > currently working on?  This should be easy, but I don't know how to do it.
  22. > -- 
  23. > Brian E. Saunders            saunders@luther.che.wisc.edu
  24. Try the following:
  25.  
  26. :w!            <--- Saves your file
  27. G            <--- Move to the bottom of the file
  28. :r !spell %     <--- Spell checks and adds the results to the end
  29.  
  30. Happy trails!
  31. -- Andy.
  32.  
  33. ------------
  34. Andy Feibus.
  35. AMF Enterprises; PS&I, Inc.; Open Systems Today; SCO Magazine;  (whatever :-)
  36. andyfe@utoday.com
  37. or: amf@amfent.gwinnett.com
  38.