Re: vi linewrap question (fwd)
On Fri, Dec 31, 1999 at 02:54:24PM -0700, Nate Duehr wrote:
> Okay, I'm fairly new to vi after living in a uMacs/Emacs world for a
> number of years...
> When using vi with mutt for mail, I have to type carriage returns
> manually to avoid linewrap. Is there any way to teach vi to linewrap
> at 72 columns?
> Also, I know there's a way to pass vi options from mutt
> which would keep vi from doing this unless I was in mutt, but
> I don't remember where that is either.
1) Replace vi with vim (it's VI-iMproved !)
2) Create a vimrc or whatever you want to call it, an put it in
~/.mutt . Then in your ~/.mutt/muttrc have line like:
set editor='vim -u $HOME/.mutt/vimrc'
Since we're on the subject, how do you do a :set tw=80 by default in elvis?
puting set tw=80 in the $HOME/.exrc file doesn't seem to do anything helpful.