Thilo Six wrote:
> -- <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
That should be OK.
> 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.
True, when installing a new system I also make a backup of /etc. With
the "etc/" in there it's unlikely to match in wrong files. I suppose
you verified that "*/etc/sysctl.conf" still matches "/etc/sysctl.conf".
--
Why don't cannibals eat clowns?
Because they taste funny.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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