Bram Moolenaar wrote the following on 18.03.2011 21:51
-- <snip> --
>> au BufNewFile,BufRead /etc/sysctl.conf setf sysctl
>> +au BufNewFile,BufRead /etc/sysctl.d/*.conf setf sysctl
>
> That should be OK.
all right.
>> 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".
yes. I will update the patch with this.
--
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