VI and MAILX (was: Re: question about vi)

Dave Decot decot at hpisod2.HP.COM
Wed May 18 10:21:47 AEST 1988


> }...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



More information about the Comp.unix.questions mailing list