Request and Ideas: Vim filetype plugins for FreeBSD

Ian A. Tegebo yontege at rescomp.berkeley.edu
Mon Apr 9 18:49:13 UTC 2007


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


More information about the freebsd-questions mailing list