aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/php.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/php.vim')
-rw-r--r--vim/after/ftplugin/php.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim
index ee0ce5c8..801f1c76 100644
--- a/vim/after/ftplugin/php.vim
+++ b/vim/after/ftplugin/php.vim
@@ -12,6 +12,10 @@ let b:undo_ftplugin .= '|setlocal comments< formatoptions<'
setlocal keywordprg=pman
let b:undo_ftplugin .= '|setlocal keywordprg<'
+" Specify ERE regex (close to PCRE) for regex_escape.vim
+let b:regex_escape_flavor = 'ere'
+let b:undo_ftplugin .= '|unlet b:regex_escape_flavor'
+
" Stop here if the user doesn't want ftplugin mappings
if exists('g:no_plugin_maps') || exists('g:no_php_maps')
finish