Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site heurikon.UUCP Path: utzoo!linus!decvax!harpo!seismo!uwvax!heurikon!jeff From: jeff@heurikon.UUCP Newsgroups: net.flame,net.misc,net.unix,net.bugs Subject: Re: English Usage - There's help while using 'vi' (& bug fix) Message-ID: <171@heurikon.UUCP> Date: Thu, 19-Jan-84 00:52:55 EST Article-I.D.: heurikon.171 Posted: Thu Jan 19 00:52:55 1984 Date-Received: Sat, 14-Jan-84 03:16:56 EST References: <203@whuxle.UUCP> <2158@fortune.UUCP> Organization: Heurikon Corp., Madison WI Lines: 32 One hazard of submitting articles is the risk some of us take of being flamed upon for poor spelling, grammer or construction. Well, I'm not such a hot speller and that's one reason why I like Unix. I use "look" like crazy and feed the text of into "spell". Here's a suggestion for those of you with 'vi'. Put the following in your .login file: setenv EXINIT 'map L :\!look |map K :w^M:\!spell %^M' Then the 'L' key will put you in "look" and the 'K' key will feed the (updated) file you're editing into "spell". There is no need to exit 'vi'. If you don't like 'L' and 'K', you can specify any keys you'd prefer. (The notation "^M" means control-M. Enter it using 'vi' by hitting a control-V followed by a return. Your .login will look funny if you cat it, but it'll work okay.) While you're at it, you could add this map function which will give you a quick and easy way to append your .signature file to the end of mail items, if your mail pgm doesn't do automatically: setenv EXINIT '|map V :$:r $HOME/.signature^MO^D----' That will also solve the 'vi' bug which was discussed on the net recently concerning the *nasty* habit 'vi' has of forgetting that the file you're editing has been modified. The "D----" forces 'vi' to think "modified". (Hmm... "spell" and "look" disagree on how to spell "forgetting". Is it forgeting or forgetting? I forget!) Enjoy... -- Jeffrey Mattox, Heurikon Corp, Madison, WI {harpo, hao, philabs}!seismo!uwvax!heurikon!jeff (news & mail) {ihnp4, allegra}!uwvax!heurikon!jeff (mail - but slower)