Bug#517532: vim: au FileType mail doesn't work anymore?
James Vega
jamessan at jamessan.com
Sat Feb 28 22:03:42 UTC 2009
On Sat, Feb 28, 2009 at 06:26:13PM +0100, Kurt Roeckx wrote:
> On Sat, Feb 28, 2009 at 11:09:21AM -0500, James Vega wrote:
> > On Sat, Feb 28, 2009 at 01:46:22PM +0100, Kurt Roeckx wrote:
> > > Because of #379107 I have this in my vimrc file:
> > > :let &termencoding = &encoding
> > > set encoding=utf-8
> > > au FileType mail setlocal fenc=latin1
> > >
> > > However that doesn't seem to work anymore, and the fileencoding is now
> > > set to utf-8 instead of latin1.
> >
> > From a quick test, using an autocmd to set 'fenc' to latin1 works for
> > me. Could you try ":verbose set fenc?" from the mail file?
>
> It says utf-8. I've looked at that before sending that mail.
The important bit was that using :verbose will tell you which file last
changed the setting. I'll assume (based on the rest of your email)
yours didn't show a filename which means it was just auto-detected.
> > > I also wanted to set other options for mail now, but it doesn't seem to
> > > have any effect. So my guess was that detections of the filetype was
> > > broken. I use mutt so my files look like
> > > /tmp/mutt-intrepid-1000-28242-16.
> >
> > Testing in my Lenny chroot, that file pattern does get recognized as
> > 'mail' filetype. ":verbose set filetype?" will show what filetype it is
> > set to and which script set it.
>
> I get:
> filetype=
>
> It seems it doesn't recoginize any filetype.
I'll bet that ":filetype" says filetype detection is OFF. As of
1:7.1.314-3+lenny1/2:7.2c.000-1 filetype detection is no longer enabled
by $VIMRUNTIME/debian.vim as doing so makes it impossible for the user
to make certain configuration changes.
You'll want to re-add "filetype plugin indent on" (or whatever
combination of the filetype features you want) to your ~/.vimrc. That
should solve all the issues raised in this bug.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20090228/30d19174/attachment.pgp
More information about the pkg-vim-maintainers
mailing list