roberto wrote: > the problem are not braces, sorry, but just pattern because i'm currently > editing matlab files, so without braces...
Heh, without knowledge of what matlab source looks like I was presuming there'd be braces in there somewhere. :D Ok, what I've come up with. A quick check of vim.org's FAQ pointed me to [{ and ]} to get to the begnning/end of the current block in a language that uses braces. It suggested reading ":help various-motions" for more information. First up on that help screen was %. In it there was a reference to "matchpairs" which can configure the individual characters % will match on. Going to matchedpairs explained that limitation and how to get around it with the "matchit.vim" plugin. Googled on "matchit.vim" and looked at the plugin on vim.org. I'm not sure if it will do what you want (match an end with a for or if) but might be a good starting place for further investigation. -- Steve C. Lamb | I'm your priest, I'm your shrink, I'm your PGP Key: 8B6E99C5 | main connection to the switchboard of souls. -------------------------------+---------------------------------------------
signature.asc
Description: OpenPGP digital signature