spf13 / PIV

PHP Integration environment for Vim
250 stars 36 forks source link

Matching standard braces {}, brackets [], and parenthesis () with % key does not work #13

Open nerdo opened 12 years ago

nerdo commented 12 years ago

I tracked down this issue to be the omission of these in the file PIV/after/ftplugin/php.vim

The fix is simply to add them to b:match_words:

if exists("loaded_matchit") let b:match_skip = 's:comment|string' let b:matchwords = '<?(php)\?:?>,:,' . \ ':::,' . \ ':,:,' . \ ':,:' . \ '\@<=[ou]l[^>]\%(>|$):\@<=li:\@<=/[ou]l,' . \ '\@<=dl[^>]\%(>|$):\@<=d[td]:\@<=/dl,' . \ '<\@<=([^/?][^ \t>])[^>]_\%(>|$):\@<=/\1,' . \ '<:>,(:),{:},[:]' endif

loganlinn commented 11 years ago

This should be closable, as #22 addresses it.

ghost commented 10 years ago

@nerdo : does it work fine for you now, once updated? if so, please close the issue