Hi Chris!

On Di, 07 Jun 2011, Chris Brennan wrote:

> * Christian Brabandt <cbli...@256bit.org> [2011-06-07 08:22:51 +0200]:
> 
> > The better alternative is to ask vim, when formationoptions was set to 
> > include the 'l' flag. So when invoking the mail editor from mutt type
> > :verbose set fo?
> > 
> > and vim should explicitly tell you, where it was last set.
> 
> Neat ...., indeed it tell me
> 
> mutt-stewie-1000-24566-13547248091007304847 [+]
>   formatoptions=tcqlw
> Last set from ~/.vim/after/ftplugin/mail.vim
> Press ENTER or type command to continue
> 
> The contents of that file is below:
> 
> syntax on
> setlocal wrap
> setlocal textwidth=72
> " do text=flowed wrapping
> setlocal formatoptions+=w
> " don't autoindent or smartindent, as that just adds weird spaces into the
> " middle of flowed text paragraphs
> setlocal noautoindent nosmartindent

I think, the 'l' flag comes from $VIMRUNTIME/ftplugin/mail.vim

In your case, ~/.vim/after/ftplugin/mail.vim just was executed later 
than the mail.vim from the vim runtime directory and happens to also 
change your 'fo' setting, so the verbose did not really help here.

regards,
Christian
-- 

Reply via email to