Hello Bram,
hello list,

i have patched filetype.vim again. As there are certain newly '.d/' directories
that now can contain configurations.
e.g. from man xorg.con(5) on my system:

,----[ man xorg.con(5) ]---------------------

Xorg uses a configuration file called xorg.conf and files  end‐
ing  in the suffix .conf from the directory xorg.conf.d for its
initial setup.
`---------------------------------------------

I have tested those changes as good as i can and they worked for me.


i also think i fixed a typo as i think:
b:xf86c_xfree86_version = 4

should really be:
b:xf86conf_xfree86_version = 4

patch is attached.
-- 
bye Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- vim/runtime/filetype.vim	2011-03-13 18:56:16.000000000 +0100
+++ filetype.vim	2011-03-13 20:02:17.000000000 +0100
@@ -316,7 +316,7 @@
 endfunc
 
 " Calendar
-au BufNewFile,BufRead calendar			setf calendar
+au BufNewFile,BufRead {,.}calendar			setf calendar
 au BufNewFile,BufRead */.calendar/*,
 	\*/share/calendar/*/calendar.*,*/share/calendar/calendar.*
 	\					call s:StarSetf('calendar')
@@ -552,9 +552,6 @@
 	\|   setf debcontrol
 	\| endif
 
-" Debian Sources.list
-au BufNewFile,BufRead /etc/apt/sources.list	setf debsources
-
 " Deny hosts
 au BufNewFile,BufRead denyhosts.conf		setf denyhosts
 
@@ -951,7 +948,7 @@
 au BufNewFile,BufRead *.latte,*.lte		setf latte
 
 " Limits
-au BufNewFile,BufRead /etc/limits		setf limits
+au BufNewFile,BufRead */limits{,.d/*}.conf 	setf limits
 
 " LambdaProlog (*.mod too, see Modsim)
 au BufNewFile,BufRead *.sig			setf lprolog
@@ -1101,7 +1098,7 @@
 au BufNewFile,BufRead *.hgrc,*hgrc		setf cfg
 
 " Messages (logs mostly)
-autocmd BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.*[0-9]*} setf messages
+autocmd BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*} setf messages
 
 " Metafont
 au BufNewFile,BufRead *.mf			setf mf
@@ -1968,7 +1965,7 @@
 au BufNewFile,BufRead *.cm			setf voscm
 
 " Sysctl
-au BufNewFile,BufRead /etc/sysctl.conf		setf sysctl
+au BufNewFile,BufRead */sysctl{,.d/*}.conf 	setf sysctl
 
 " Synopsys Design Constraints
 au BufNewFile,BufRead *.sdc			setf sdc
@@ -2226,7 +2223,7 @@
 	\ setf xf86conf
 
 " Xorg config
-au BufNewFile,BufRead xorg.conf,xorg.conf-4	let b:xf86c_xfree86_version = 4 | setf xf86conf
+au BufNewFile,BufRead */xorg{,.conf.d/*}.conf{,-4}    let b:xf86conf_xfree86_version = 4 | setf xf86conf
 
 " Xinetd conf
 au BufNewFile,BufRead /etc/xinetd.conf		setf xinetd
@@ -2385,7 +2382,7 @@
 au BufNewFile,BufRead crontab,crontab.*,/etc/cron.d/*		call s:StarSetf('crontab')
 
 " Debian Sources.list
-au BufNewFile,BufRead /etc/apt/sources.list.d/*	call s:StarSetf('debsources')
+au BufNewFile,BufRead */apt/sources{,.list.d/*}.list call s:StarSetf('debsources')
 
 " Dracula
 au BufNewFile,BufRead drac.*			call s:StarSetf('dracula')

Raspunde prin e-mail lui