home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: sparky!uunet!caen!sdd.hp.com!ux1.cso.uiuc.edu!krisk
- From: krisk@ux1.cso.uiuc.edu (Kris Klindworth)
- Subject: Re: Is there a spellchecker for VI?
- Message-ID: <BtnFyH.3v9@ux1.cso.uiuc.edu>
- Organization: University of Illinois at Urbana
- References: <1992Aug27.034210.1134@ucsu.Colorado.EDU>
- Date: Thu, 27 Aug 1992 15:49:15 GMT
- Lines: 46
-
- olsonkk@ucsu.Colorado.EDU (OLSON KIRK) writes:
-
-
- >Hi all... I was wondering if anyone knew if a spellchecker for VI exists
- >and or is available? Has anyone ever heard of such a thing?
-
- >Thanks!
-
- >Kirk
- >--
- >Kirk Olson
-
- >olsonkk@ucsu.colorado.edu
- >olsonkir@luther.uni.edu
-
-
- If you're on a unix machine, you can pipe the lines to be
- checked through unix spell.
-
- Ex.
- :%!spell
-
- However, this must be undone immediately or you'll lose your
- original text. An alternative way to do this is to save the file
- and then run spell on it, reading the output into your current text file.
-
- Ex.
- :w!
- :0r !spell %
-
- This will put the misspelled words at the top of the file.
-
-
- WHAT I DO:
-
- I use the following key mappings in my .exrc file to approximate
- the word processor behavior of
- automatically moving the cursor from one misspelled word to the next.
-
- map S :w!:0r !spell %:1,s/^/\//1G
- map F "kyy@k
-
- Then a typical sequents is to hit S to run the spell checker, and load
- the errors into the beginning of the file, hit F to load the word
- into the find buffer, hit n to move on to the next occurrence of the word,
- and dd when the cursor comes back to the first line of the file.
-