Am 2014-08-20 15:09, schrieb Matteo Riva:
> When using the matchit plugin I can't get the matching to work on
> square brackets, unless I use the :MatchDebug command, then they work
> fine.
> Everything else is working as far as I can tell, and b:match_words
> includes [:]
>
> Tested both on vim 7.2 and 7.3 (same config and plugins, two different
> debian systems).
>
> What could be causing this?
My guess is, the plugin is using the values of b:match_words as a
pattern,
and '[' and ']' needs to be escaped to be a valid pattern.
Therefore try either to use
:let b:match_words='\[:\]'
or as a quick look into matchit.vim reveals,
add '[:]' to the 'matchpairs' option which will be handled by the
matchit
plugin automatically (and it escapes those values correctly).
Best,
Christian
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment