Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!warp.Eng.Sun.COM!rock From: rock@warp.Eng.Sun.COM (Bill Petro) Newsgroups: comp.editors Subject: Re: spelling from within vi Message-ID: <2404@exodus.Eng.Sun.COM> Date: 8 Nov 90 23:17:04 GMT References: <1990Oct31.153710.7865@cec1.wustl.edu> <1990Nov7.005405.461@investor.pgh.pa.us> Sender: news@exodus.Eng.Sun.COM Distribution: na Lines: 36 Dan_Jacobson@ATT.COM 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... >Why don't you just "go with the flow", "get with the program", "get >up, get into it, get involved" (--James Brown) and use GNU Emacs' vi >(or vip) mode, and its ispell interface. I have just started playing with the vip-mode in emacs and would be interested in any suggestions on how to use the ispell interface. In the meantime, here is what I so in vi. It is a little faster than the other suggestions: map @x :!ispell -x %^M^M:e!^M Here are other macro mappings that will allow you to spell smaller parts of your buffer: " ISPELL MACROS " CURRENT WORD map x lbi " FROM DOT TO END OF FILE map @X :.,$w!/tmp/ispell.buf|t.|.,$d|!ispell -x # :r# " FROM MARK (M) TO DOT map :'m,.w!/tmp/ispell.buf|t.|'m,-d|!ispell -x # :r# " CURRENT PARAGRAPH map {ma}mb:'a,'bw!/tmp/ispell.buf|t.|'a,'bd|!ispell -x # :r# -- Bill Petro {decwrl,hplabs,ucbvax}!sun!Eng!rock "UNIX for the sake of the kingdom of heaven" Matthew 19:12