wnp@dcs.UUCP (Wolf N. Paul) (05/15/88)
In article <730001@hpfelg.HP.COM> lls@hpfelg.HP.COM (Lauri Schaaf) writes: > >When using mailx and writing a memo... >you can use " ~v " -- this will put >you into vi mode for your memo.... >When your done just :wq! or ZZ and >memo is ready to be sent -- this is >better documented in your manual. UNIX SysV mailx requires you to press Control-D after quitting VI in order to send the message. -- Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101 UUCP: ihnp4!killer!dcs!wnp ESL: 62832882 INTERNET: wnp@DESEES.DAS.NET or wnp@dcs.UUCP TLX: 910-280-0585 EES PLANO UD
decot@hpisod2.HP.COM (Dave Decot) (05/18/88)
> }...When using mailx and writing a memo... > }...you can use " ~v " -- this will put > }...you into vi mode for your memo.... > } > }Actually, it invokes whatever is defined for the environmental variable > }VISUAL. I happen to use emacs. > > Is there a way of invoking vi whenever you call the mail program, so you > don't have to type ~v each and every time? alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$' Dave Decot Hewlett-Packard Company hpda!decot
kent@happym.UUCP (Kent Forschmiedt) (05/26/88)
[ when entering mail in mailx, ~v at the beginning of a line will invoke the editor named in the VISUAL variable. Dave Decot suggests this alias: ] > >alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$' I would revise that to: alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$; rm -f /tmp/mail.$$' Assuming that the ";" works the same in csh as in sh. -- -- Kent Forschmiedt -- kent@happym.UUCP, tikal!camco!happym!kent Happy Man Corporation 206-282-9598
mem@zinn.MV.COM (Mark E. Mallett) (05/27/88)
In article <88@dcs.UUCP>, wnp@dcs.UUCP (Wolf N. Paul) writes: > In article <730001@hpfelg.HP.COM> lls@hpfelg.HP.COM (Lauri Schaaf) writes: > >When your done just :wq! or ZZ and > >memo is ready to be sent -- this is > >better documented in your manual. > UNIX SysV mailx requires you to press Control-D after quitting > VI in order to send the message. The original reference does not say that the memo is sent. It says that the memo is "ready to be sent". (Actually it is merely "edited". "Ready" is entirely subjective :-) ). Anyway, you don't *have* to get vi from "~v"; you can set the VISUAL and/or the EDITOR environment/mailx variables to chose the editor you prefer. -- Mark E. Mallett PO Box 4188/ Manchester NH/ 03103 Bus. Phone: 603 645 5069 Home: 603 424 8129 uucp: mem@zinn.MV.COM (...decvax!elrond!zinn!mem or ...sii!zinn!mem) BIX: mmallett
mdorion@cmtl01.UUCP (Mario Dorion) (06/03/88)
[ when entering mail in mailx, ~v at the beginning of a line will invoke the editor named in the VISUAL variable. Dave Decot suggests this alias: ] > >alias mailto 'vi /tmp/mail.$$ && | /usr/bin/mailx \!* < /tmp/mail.$$' ^^^ Can someone explane to me what does this \!* mean! -- Mario Dorion | ...!{rutgers,uunet,ihnp4}! Frisco Bay Industries | philabs!micomvax!cmtl01!mdorion Montreal, Canada | 1 (514) 738-7300 | I thought this planet was in public domain!