From owner-freebsd-questions@FreeBSD.ORG Mon Apr 9 21:56:54 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FCED16A404 for ; Mon, 9 Apr 2007 21:56:54 +0000 (UTC) (envelope-from alex@upful.org) Received: from simmts7-srv.bellnexxia.net (simmts7.bellnexxia.net [206.47.199.165]) by mx1.freebsd.org (Postfix) with ESMTP id 1956113C45D for ; Mon, 9 Apr 2007 21:56:53 +0000 (UTC) (envelope-from alex@upful.org) Received: from upful.org ([74.12.88.143]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070409215652.WLSN7534.simmts7-srv.bellnexxia.net@upful.org> for ; Mon, 9 Apr 2007 17:56:52 -0400 Received: from upful.org (localhost [127.0.0.1]) by upful.org (8.13.8/8.13.8) with ESMTP id l39MumJ4093992 for ; Mon, 9 Apr 2007 17:56:48 -0500 (EST) (envelope-from alex@upful.org) Received: (from alex@localhost) by upful.org (8.13.8/8.13.8/Submit) id l39Muh1q093991 for freebsd-questions@freebsd.org; Mon, 9 Apr 2007 17:56:43 -0500 (EST) (envelope-from alex) Date: Mon, 9 Apr 2007 17:56:43 -0500 From: Alexander Anderson To: freebsd-questions@freebsd.org Message-ID: <20070409225643.GA93816@upful.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20070409184913.GC31763@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070409184913.GC31763@rescomp.berkeley.edu> User-Agent: Mutt/1.4.2.2i Subject: Re: Request and Ideas: Vim filetype plugins for FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 21:56:54 -0000 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.