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

  1. Path: sparky!uunet!ulowell!m2c!bu.edu!cvbnet!hsiegel
  2. From: hsiegel@cvbnet.prime.com (mailhost)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Spell checker from inside vi
  5. Message-ID: <4634@cvbnetPrime.COM>
  6. Date: 28 Jan 93 15:21:12 GMT
  7. References: <1993Jan27.095737.16318@ncrcae.ColumbiaSC.NCR.COM>
  8. Sender: postnews@cvbnetPrime.COM
  9. Lines: 28
  10.  
  11. From article <1993Jan27.095737.16318@ncrcae.ColumbiaSC.NCR.COM>, by raj@grok101.ColumbiaSC.NCR.COM (0000-Admin(0000)):
  12. > In article <1993Jan26.170105.4573@doug.cae.wisc.edu>, saunders@luther.che.wisc.edu (Brian E. Saunders) writes:
  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 can pipe the lines through spell by going to the command line and typing
  18. > |> "1,$!spell", but unfortunately the output replaces all of your lines!  Does
  19. > |> anybody know how to redirect the output to the bottom of the file you are
  20. > |> currently working on?  This should be easy, but I don't know how to do it.
  21. ...
  22. > You can try the following on the command line of vi:
  23. > :!spell % >> %
  24. > This will append the output of the command "spell" to the eof.
  25. > The "%" means the current file that is being edited.
  26.  
  27. Or even simpler,
  28.     :w
  29.     :$r!spell %
  30. will (first) write the current version of the file to disk and then
  31. append the output of "spell" on the current file to the end of the
  32. file being edited.
  33.  
  34. Howard Siegel                   hsiegel@piano.prime.com
  35. Computervision                  hsiegel@primerd.prime.com
  36. Bedford, Mass.                  hsiegel%piano.prime.com@RELAY.CS.NET
  37. (617) 275-1800 x4064            cvbnet!hsiegel@primerd.prime.com
  38.