<<< Date Index >>>     <<< Thread Index >>>

Re: mutt and vim



On Fri, 19 Mar 2004 the mental interface of
Wilkinson, Alex told:

> Hi all,
> 
> My default editor when using Mutt 1.5.6i is vim.
> 
> Question: Is it possible to configure vim to be only 80 characters
>           wide *only* when mutt exec's it ?
> 
In your vimrc:

if has("autocmd")
   au FileType mail set tw=68
   au FileType mail set expandtab
   au FileType mail set tabstop=3 # or whatever you want
endif

and in your muttrc simply
set editor = 'vim %s'


HTH
Elimar

-- 
  You cannot propel yourself forward by
  patting yourself on the back.

Attachment: signature.asc
Description: Digital signature