
I started with current recipe for log files called txt.vim, made a few changes, and got what I was looking for.
With limited google searching, I decided to try this on my own, and realised that it's really easy. Making your own recipe:I was looking for a simple highlighting syntax that would color code comments but nothing else. (for example nf* uses an apachestyle formater.) I have not figured this out just yet. The challenge is if you want more then one file with that extension. If you want all ".conf" files to be filtered with the ciscoacl formating, you would create the following line: At it's most basic level this is really easy.
If you want this highlighting to be automatically enabled on a specific file type, you need to modify the filetype.vim file, and denote what kind of highlighting recipes you want for each file type. Then while having some file open, like a cisco config file, you would type the following command :set syntax=ciscoacl For example, if you wanted to test the official cisco highlighting look, you would have downloaded the file ciscoacl.vim into your \syntax directory. You can see how this highlighting looks on your current file by loading it via the command :set syntax= (without the extension). In Mac (linux), it's here: / usr/share/vim/vim73/syntax/. In Windoz, it's here: C:\Program Files\Vim\vim72\syntax\. Stick the downloads in your syntax directory. Note that you can find lots of goodies at this site. Download the syntax highlighting file. Using a prebuilt highlighting recipe:You can download text highlighting recipes and add them to your repository to use.