Sunday, August 24, 2014

Re: Matchit plugin doesn't match square brackets

miercuri, 20 august 2014, 21:39:39 UTC+3, Matteo Riva a scris:
> 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?

BTW, are you by any chance editing javascript/html? If so, i just happen to stumble upon this: http://vim.wikia.com/wiki/Script:39 (see the 2nd "bug"). The solution described would be in this case to add (again):

let b:match_words .= ',{:},(:),[:]'

to an 'after/ftplugin/html.vim' file.

--
--
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: