filetype.vim
Pierre Habouzit
pierre.habouzit@m4x.org
Wed, 16 Mar 2005 08:51:44 +0100
--nextPart34741719.REEGQbJLU5
Content-Type: multipart/mixed;
boundary="Boundary-01=_QW+NCP5rg8w5dwG"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-01=_QW+NCP5rg8w5dwG
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
please consider the attached patch. it adds files=20
changelog.Debian.gz to the debchangelog type, since the later check=20
(that tries to know if the getline(1) has an urgency in it) seems to=20
fail, I guess because it is gzipped.
with that simple patch, the detection is correct.
Cheers,
=2D-=20
=B7O=B7 Pierre Habouzit
=B7=B7O
OOO http://www.madism.org
--Boundary-01=_QW+NCP5rg8w5dwG
Content-Type: text/x-diff;
charset="iso-8859-15";
name="ft.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ft.diff"
diff -Nrua vim63.orig/runtime/filetype.vim vim63/runtime/filetype.vim
--- vim63.orig/runtime/filetype.vim 2005-03-15 10:18:48.000000000 +0100
+++ vim63/runtime/filetype.vim 2005-03-16 08:47:24.150310908 +0100
@@ -299,7 +299,7 @@
au BufNewFile,BufRead *.con setf cterm
" Changelog
-au BufNewFile,BufRead changelog.Debian,changelog.dch setf debchangelog
+au BufNewFile,BufRead changelog.Debian,changelog.Debian.gz,changelog.dch setf debchangelog
au BufNewFile,BufRead [cC]hange[lL]og if getline(1) =~ '; urgency='
\| setf debchangelog | else | setf changelog | endif
--Boundary-01=_QW+NCP5rg8w5dwG--
--nextPart34741719.REEGQbJLU5
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBCN+WQvGr7W6HudhwRAnhgAJ4iBxM7gRmAAPL102XmROCpIix0iwCgolcO
Kbh00JrErtCUd9BHeJiHj+g=
=Yz5b
-----END PGP SIGNATURE-----
--nextPart34741719.REEGQbJLU5--