On Tue, Jan 22, 2002 at 11:18:14AM -0800, Will Yardley wrote:
> Nick Wilson wrote:
> > 
> > How might I incorporate a tw command in that?
> > This is what I have for mine (nicked it from somewhere else so I don't
> > understand all of it but it works :)
> > 
> >  set editor="vim -c 'set tw=72 et'"
> 
> i have
> set editor="vim +'/^$/+1' -c 'set nohlsearch' +':set textwidth=72' +':set wrap' 
>+':fixdel' +':set t_kD=' +':set noai' +':set bg=dark' +':syntax on'"
> 
> i actually have some of those in my .vimrc as well, so they're not
> really necessary, but you get the point.

Another way to do this, to avoid really long 'editor' variables, and so
that you can experiment with different settings without having to
re-start mutt, is to use autocommands in your .vimrc, e.g.,

    au BufNewFile,BufRead /tmp/mutt-* set expandtab
    au BufNewFile,BufRead /tmp/mutt-* set formatoptions-=o

Note also that you can set several options with one set command, e.g.,

    set tw=72 wrap ai

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to