vim configuration to turn on syntax for .conf files

vim

Solution

You can check vim.org or the Internet for a suitable syntax.

As a first approximation, this somewhat looks like DOS / Windows INI files. Vim comes with a syntax for them; try

:setf dosini

If that suits you, you can add a filetype detection rule:

:autocmd BufRead,BufNewFile logging.conf setf dosini

See `:help ftdetect` for details.

Problem

I have a config file under my python project, called "logging.conf", the file looks like: ``` [formatters] keys: console, logging [formatter_console] format: %(asctime)s | %(message)s [formatter_logging] format: %(message)s etc etc etc ``` Tried `:syntax on`, nothing happened, the .conf files look very plain. Is there anyway I can turn on some syntax to make the .conf file more colorful and readable?

Original source