% Matching With Vim/Ruby
slabounty at nexatech.com
Fri May 21 09:21:25 EDT 2010
Not sure if this is the right list or not, but I'm trying to get matching to work (using %) in vim in a ruby file. For example if I have the following code:
1.upto(10) do |n|
If the cursor is on the "do", I'd like to hit the "%" key and have it go to "end".
I have the following in an .vim/after/ftplugin/ruby.vim
let b:match_ignorecase = 0
let b:match_words =
\ '\%(\%(\%(^\|[;=]\)\s*\)\@<=\%(class\|module\|while\|begin\|until\|for\|if\|unless\|def\|case\)\|\<do\)\>:' .
which is what I had in an older system. I believe that matchit.vim is loaded already (by default).
Any ideas on getting this to work or alternative ways of doing this?
This message is confidential and may contain confidential information it is intended only for the individual[s] named herein. If this message is being sent from a member of the legal department, it may also be legally privileged. If you are not the named addressee[s] you must delete this email immediately; do not disseminate, distribute or copy.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vim-ruby-devel