UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: [email protected]/upwork.link

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:

[[email protected] 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')

[[email protected] vhosts]# 

Written by spectre

July 21st, 2015 at 8:57 pm

Posted in Vim

Leave a Reply