UPWORK superadmin blog

Tips and Tricks for clients

Vim: Vim Syntax highlighting for Apache – CentOS 6.*

without comments

I often have edit apache configuration files on servers. Syntax – Highlighting never ‘auto-starts’. I found out why in some cases. Of course – if place of files is non usually.

For example:

[root@server vhosts]# egrep -A 3 'Apache config'  /usr/share/vim/vim72/filetype.vim
" Apache config file
au BufNewFile,BufRead .htaccess                  setf apache
au BufNewFile,BufRead httpd.conf*,srm.conf*,access.conf*,apache.conf*,
python.conf*,squirrelmail.conf* call s:StarSetf('apache')

[root@server vhosts]# 

Written by spectre

July 21st, 2015 at 8:57 pm

Posted in Vim

Leave a Reply