Bug#421314: /usr/share/vim/vim70/filetype.vim: Ignore .dpkg-dist
and .dpkg-old extensions when determining file type
Josh Triplett
josh at freedesktop.org
Fri Apr 27 19:55:51 UTC 2007
Package: vim-runtime
Version: 1:7.0-219+1
Severity: wishlist
File: /usr/share/vim/vim70/filetype.vim
Tags: patch
vim can ignore various extensions when determining a file's type from its
filename, such as .orig, .old, and .bak. The attached patch makes vim ignore
..dpkg-dist and .dpkg-old as well.
- Josh Triplett
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-rc2test (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
vim-runtime depends on no packages.
Versions of packages vim-runtime recommends:
ii vim 1:7.0-219+1 Vi IMproved - enhanced vi editor
-- no debconf information
-------------- next part --------------
diff -Naur vim70.orig/runtime/filetype.vim vim70/runtime/filetype.vim
--- vim70.orig/runtime/filetype.vim 2007-04-27 11:57:24.000000000 -0700
+++ vim70/runtime/filetype.vim 2007-04-27 12:00:07.000000000 -0700
@@ -16,7 +16,7 @@
augroup filetypedetect
" Ignored extensions
-au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.rpmsave,?\+.rpmnew
+au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.rpmsave,?\+.rpmnew
\ exe "doau filetypedetect BufRead " . expand("<afile>:r")
au BufNewFile,BufRead *~
\ let s:name = expand("<afile>") |
More information about the pkg-vim-maintainers
mailing list