Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!hpuplca!joseph From: joseph@hpuplca.HP.COM ( Joseph Hohl ) Newsgroups: comp.editors Subject: Re: Re: spelling from within vi Message-ID: <2230002@hpuplca.HP.COM> Date: 8 Nov 90 15:38:50 GMT References: <1990Nov7.005405.461@investor.pgh.pa.us> Organization: Hewlett-Packard Pleasanton Ca. Sales Lines: 23 > In article <1990Oct31.153710.7865@cec1.wustl.edu> abed@saturn.wustl.edu (Abed Hammoud) writes: > > > > Is there a way I can use the unix spelling program ispell > > or spell from within vi. if yes and some body have done it > > please let me know how... > > I usually use :1,.$!spell. This replaces the buffer with your spelling > errors, but u[ndo] restores the buffer. You can also say !}spell to do > a paragraph. I suppose you could get real fancy with macros, but this > is simple and does the job for most of the cases I run into. > -- > Bob Peirce, Pittsburgh, PA 412-471-5320 > ...!uunet!pitt!investor!rbp rbp@investor.pgh.pa.us > ---------- I use the following entry in my .exrc to use ispell: map S :w!^M:!ispell %^M:e!^^M^M ! The ^Ms are Cntl-Ms This will save your file, run ispell on it and read the corrected file back into your buffer with a S from command mode in vi. Joseph