saspijkerman
unread,Nov 19, 2009, 4:09:21 AM11/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_mac
Hi,
I often edit apache configuration files on the mac. Syntax
Highlighting never 'auto-starts'. I found out why:
In the following file are the filename-checks for syntax modus:
/Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim
The lines for Apache Syntax mode are the following:
" Apache style config file
au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle')
" Apache config file
au BufNewFile,BufRead .htaccess setf apache
au BufNewFile,BufRead
httpd.conf*,srm.conf*,access.conf*,apache.conf*,apache2.conf*,/etc/
apache2/*.conf* call s:StarSetf('apache')
" More Apache files.
au BufNewFile,BufRead /etc/apache2/conf.*/*,/etc/apache2/sites-*/*,/
etc/apache2/mods-*/* call s:StarSetf('apache')
But on OSX Snow Leopard the default apache location is
/private/etc/apache2/ in stead of /etc/apache2/
So I replaced the line:
au BufNewFile,BufRead
httpd.conf*,srm.conf*,access.conf*,apache.conf*,apache2.conf*,/etc/
apache2/*.conf* call s:StarSetf('apache')
with the following line:
au BufNewFile,BufRead
httpd.conf*,srm.conf*,access.conf*,apache.conf*,apache2.conf*,/etc/
apache2/*.conf*,/private/etc/apache2/*.conf* call s:StarSetf('apache')
It works perfectly for now but I am afraid that this file will be
replaced if there is an update for the MacVim App.
How can I stop this from happening (and don't update doesn't count)?