From owner-freebsd-stable@FreeBSD.ORG Sat Jul 28 11:57:31 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7581C16A468 for ; Sat, 28 Jul 2007 11:57:31 +0000 (UTC) (envelope-from njm@njm.f2s.com) Received: from outmail1.freedom2surf.net (outmail1.freedom2surf.net [194.106.33.237]) by mx1.freebsd.org (Postfix) with ESMTP id 5030113C46B for ; Sat, 28 Jul 2007 11:57:31 +0000 (UTC) (envelope-from njm@njm.f2s.com) Received: from oberon.njm.f2s.com (i-195-137-21-170.freedom2surf.net [195.137.21.170]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 1CD78503D4 for ; Sat, 28 Jul 2007 12:38:43 +0100 (BST) Received: from oberon.njm.f2s.com (localhost.njm.f2s.com [127.0.0.1]) by oberon.njm.f2s.com (8.14.1/8.14.1) with ESMTP id l6SBcgsF090761 for ; Sat, 28 Jul 2007 12:38:42 +0100 (BST) (envelope-from njm@oberon.njm.f2s.com) Received: (from njm@localhost) by oberon.njm.f2s.com (8.14.1/8.14.1/Submit) id l6SBcgNM090760 for freebsd-stable@freebsd.org; Sat, 28 Jul 2007 12:38:42 +0100 (BST) (envelope-from njm) Date: Sat, 28 Jul 2007 12:38:42 +0100 From: "N.J. Mann" To: freebsd-stable@freebsd.org Message-ID: <20070728113842.GA30968@oberon.njm.f2s.com> Mail-Followup-To: freebsd-stable@freebsd.org References: <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de> X-Operating-System: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: syntax highlighting of rc.conf with vim X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2007 11:57:31 -0000 In message <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de>, Michael Worobcuk wrote: > > I am using vim-7.1.18. > Everything works fine except the syntax highlighting of rc.conf. > The problem is that vim does no highlighting for the rc.conf but other > .conf files are highlighted es expected. > So I came to the conclusion that the syntax file for .conf would probably > be ok. > I also tried to use vim 6.x and copy the syntax files from a machine were > everything works fine. But the problem did not disappear. > Does anybody have a clou ? You can do this by setting the filetype explicitly for rc.conf in your ~/.vim/filetypes file, e.g. if exists("did_load_filetypes") finish endif augroup filetypedetect au! BufRead rc.conf setfiletype sh augroup END Cheers, Nick. --