From d96dc724d442bbc9788815ab3da09d9fff0555a9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2013 16:33:12 +0200 Subject: Add extended php support --- after/ftplugin/php.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 after/ftplugin/php.vim (limited to 'after/ftplugin/php.vim') diff --git a/after/ftplugin/php.vim b/after/ftplugin/php.vim new file mode 100644 index 00000000..dc42280f --- /dev/null +++ b/after/ftplugin/php.vim @@ -0,0 +1,24 @@ + +if !exists("g:DisableAutoPHPFolding") + let g:DisableAutoPHPFolding = 0 +endif + +if !g:DisableAutoPHPFolding + " Don't use the PHP syntax folding + setlocal foldmethod=manual + " Turn on PHP fast folds + EnableFastPHPFolds +endif + +" Fix matchpairs for PHP (for matchit.vim plugin) +if exists("loaded_matchit") + let b:match_skip = 's:comment\|string' + let b:match_words = ',\:\,' . + \ '\:\:\:\,' . + \ '\:\,\:\,' . + \ '\:\,\:\' . + \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' . + \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . + \ '<\@<=\([^/?][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>,' . + \ '<:>,(:),{:},[:]' +endif -- cgit v1.2.3