Date: Mon, 9 Apr 2007 17:56:43 -0500 From: Alexander Anderson <a.anderson@utoronto.ca> To: freebsd-questions@freebsd.org Subject: Re: Request and Ideas: Vim filetype plugins for FreeBSD Message-ID: <20070409225643.GA93816@upful.org> In-Reply-To: <20070409184913.GC31763@rescomp.berkeley.edu> References: <20070409184913.GC31763@rescomp.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Mon, Apr 09, 2007 at 11:49:13 AM, Ian A. Tegebo wrote:
> My thoughts for filetype plugins for FreeBSD ports would be:
> * Create syntax files for things like:
> rc.conf
> sysctl.conf
> loader.conf
[snip]
> * Write filetype plugin for rc.conf
> This could utilize omni completion for what's in
> /etc/default/rc.conf
>
> I notice that other distributions have done similar things. Has anyone
> done any work along these lines?
I just added a comment on the first line of rc.conf, loader.conf, etc.,
such as:
### rc.conf -- system configuration information
### loader.conf -- system bootstrap configuration information
And vim seems to magically highlight the syntax. If I do 'set filetype',
it tells me 'filetype=conf'. That seems to the trick, but it would have
been nice if tricks weren't necessary, so go for it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070409225643.GA93816>
