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)?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---