Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!agate!ucbvax!ORA.ORA.COM!jerry From: jerry@ORA.ORA.COM (Jerry Peek) Newsgroups: comp.mail.mh Subject: Re: Novice question about editing messages Message-ID: Date: 11 Apr 91 13:33:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 28 In , Shannon D. Appel wrote: > In article <1991Apr10.230215.21858@midway.uchicago.edu> jcav@quads.uchicago.edu (john cavallino) writes: > >... I want to have repl always come up in my editor of > >choice (which is vi, no flames please).... > > You just need to modify your .mh_profile by adding the following line: > > Editor: /usr/ucb/vi As explained in the mh-profile man page she mentioned, that line will set the default editor for *all* MH commands to be vi. In case you only want repl to use vi, try this line instead: repl: -editor vi BTW, one of the problems with having vi as the default for comp, forw, and dist is that you won't get the handy "prompter" editor for filling in the header -- for each component, you have to hit ESCAPE, move down, delete empty components you don't want and go into insert mode for others, etc. In the MH Nutshell Handbook, I showed a vi key map that helps a lot: map! ^N ^[/: $^[A When you're in text-input mode in the message header and you type control-N, it moves you to the end of the next empty header component and puts you into text-input mode at the end of it. (The ^[ are ESCAPE characters, entered by typing control-V ESCAPE.) I guess you could also add another key map for "delete this line and take me to the next one." --Jerry Peek, jerry@ora.com, uunet!ora!jerry