16 févr. 2014

Ini files are just gray... Color them all in vim

I've just found that whenever I edit a *.conf or a *.cnf file, they just appear without syntax highlighting though Vim has anything to do it properly... Except that it waits for a *.ini extension.
To add other extension to its syntax highlighting capability, just add the following line:
au BufReadPost *.conf,*.cnf set filetype=dosini