vim configuration to turn on syntax for .conf files -


i have config file under python project, called "logging.conf", 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, .conf files plain. there anyway can turn on syntax make .conf file more colorful , readable?

you can check vim.org or internet suitable syntax.

as first approximation, looks dos / windows ini files. vim comes syntax them; try

:setf dosini 

if suits you, can add filetype detection rule:

:autocmd bufread,bufnewfile logging.conf setf dosini 

see :help ftdetect details.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -