you can enable syntax highlighting in vim by typing:

:syntax on

and disable by:

:syntax off

per default vim shows *.conf files as blue-text on black-bg, which is pretty hard to read.

you can change the color-scheme used by typing:

:colo <TAB> # no this is not a typo... it really is colo, not color

i like desert 😉

vim color scheme desert

no need to modify any highlighting config files 😉


make this changes permanent

for the current user add this line to your .vimrc config file:

echo "syntax on" >> ~/.vimrc; # activate syntax highlighting permanently
echo "colo desert" >> ~/.vimrc;

just for additional info:

locate syntax|grep conf; # find vim syntax highlighting config files for conf files

<span style="color: orange;">

let’s check out those two:

vim /usr/share/vim/vim73/syntax/conf.vim
vim /usr/share/vim/vim73/syntax/config.vim