filetype.vim
Bram Moolenaar
Bram@moolenaar.net
Wed, 16 Mar 2005 13:33:23 +0100
Pierre -
> I only use pristine gzip.vim
>
> the thing is, the line to detect debchangelog are here :
>
> (quoting /usr/share/vim/vim63/filetype.vim)
>
>
> " Changelog
> au BufNewFile,BufRead changelog.Debian,changelog.dch setf debchangelog
> au BufNewFile,BufRead [cC]hange[lL]og if getline(1) =3D~ '; urgen=
> cy=3D'
> \| setf debchangelog | else | setf changelog | endif
>
> [... later ...]
>
> " Changelog
> au BufNewFile,BufRead [cC]hange[lL]og* if getline(1) =3D~ '; urgen=
> cy=3D'
> \| setf debchangelog | else | setf changelog | endif
>
>
> but when I open any /usr/share/doc/*/changelog.Debian.gz .. filetype is set=
> to changelog.
OK, that problem I can see. Strange, why would the rule work one time
and not the other time. I'll look into it. I don't want to add ".gz",
I want to fix the real problem.
- Bram
--
A special law prohibits unmarried women from parachuting on Sunday or she
shall risk arrest, fine, and/or jailing.
[real standing law in Florida, United States of America]
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///