CFEngine vim hilighting

Get the highlighting code from https://github.com/neilhwatson/vim_cf3, and set it up in a location that will be loaded by default. I’m partial to making directory under /usr/local/share, and then linking the files in.

I hate having keyword expansion turned on by default. There’s a parameter provided that you can add to vimrc to turn that off, but just on the principle of the thing, I’d rather have it default to “off” when installed as a global file, and allow individual users to turn it on if they really want to have their editor change things on them. Here’s a patch against ftplugin/cf3.vim. It’ll break if the file is updated in git at some point, but my hope is that, one day, I can get Neil convinced that this should be off by default. :)

(update: it was merged in. The following is no longer needed)

You can run this with copy-paste by running “cat – | patch -p0 cf3.vim” and pasting this in, then hitting +D.

Tuning

Meta

There’s an updated version of the policy with the “change stuff silently” code (the abbreviation expansion and permission setting) disabled by default in my github fork at https://github.com/dannysauer/vim_cf3, which would be
“git clone git://github.com/dannysauer/vim_cf3.git”
and then ignore the last couple of paragraphs.