Bram Moolenaar wrote the following on 18.03.2011 14:18

Hello Bram,

-- <snip> --

> I would prefer to keep the direct file names, those are the ones that
> are mostly used.  This applies to /etc/apt/sources.list and /etc/limits.
> For the last one you changed it to limits.conf.

good catch. Thank you.
Would be something like the following OK then?
e.g.:

au BufNewFile,BufRead /etc/sysctl.conf          setf sysctl
+au BufNewFile,BufRead /etc/sysctl.d/*.conf     setf sysctl


Also I would like to ask if it would be OK for you if we were not hardcoding the
path in filetype.vim.
e.g.
au BufNewFile,BufRead /etc/sysctl.conf          setf sysctl

would become
au BufNewFile,BufRead */etc/sysctl.conf         setf sysctl
                      ^
or probably better:
au BufNewFile,BufRead */etc/sysctl.conf         call s:StarSetf('sysctl')

?
There is real benfit in here (as already mentioned earlier) e.g. when you have
backups of /etc somewhere or have the need to rescue a system with a LiveCD.

-- <snip> --

With those answers i can try to come up with something better.

-- 
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

Raspunde prin e-mail lui