Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 11:49:13 -0700
From:      "Ian A. Tegebo" <yontege@rescomp.berkeley.edu>
To:        freebsd-questions@freebsd.org
Subject:   Request and Ideas: Vim filetype plugins for FreeBSD
Message-ID:  <20070409184913.GC31763@rescomp.berkeley.edu>

next in thread | raw e-mail | index | archive | help
I've been working on some ports and vim plugins and came across the
notion that having syntax highlighting for FreeBSD ports files, e.g.
pkg-plist, might be useful.  Firstly, I looked at vim.org and
freebsd-questions and in /usr/local/share/vim/vim* for any existing
material and didn't find anything.

My thoughts for filetype plugins for FreeBSD ports would be:

	* Create syntax files for things like:
		pkg-plist
		pkg-descr
		Makefile (when they're underneath a ports category)
		rc.conf
		sysctl.conf
		loader.conf
	* Write filetype plugins for ports
		You could use portlint as the compiler
			Quickfix could then help resolve problems
		Vimplate could be used for templating
			http://www.vim.org/scripts/script.php?script_id=1808
		Tag completion could help with variables like SITE_PERL
	* 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?

-- 
Ian Tegebo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070409184913.GC31763>