" " Replace Vim's stock PHP filetype plugin, reimplementing only the part I " actually need: the matchit.vim keyword pairs. " " This is mostly because the stock file pulls in HTML's filetype plugins too, " without providing a variable check to stop it. That causes absurd problems " with defining HTML checkers/linters in the rest of my files. " if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 " Support line continuation for this file if &compatible let s:cpoptions_save = &cpoptions set cpoptions-=C endif " Define keywords for matchit.vim if exists('g:loaded_matchit') let b:match_words = '' \ . ',\:\' \ . ',\:\' \ . ',\:\' \ . ',\:\:\:\' \ . ',\:\' \ . ',\:\' endif " Define how to undo this plugin's settings let b:undo_ftplugin = 'unlet b:match_words' " Restore 'cpoptions' setting if we touched it if exists('s:cpoptions_save') let &cpoptions = s:cpoptions_save unlet s:cpoptions_save endif