From: Jamis Buck Date: 2004-01-10T01:59:50+09:00 Subject: Re: Ruby delimiter matching in vim (was block delimiting) Mark J. Reed wrote: > >The ftplugin/ruby.vim file needs to set b:match_words appropriately for >Ruby. I'm using the line below, which so far is working fine for me, >but as I just now installed matchit after reading Jamis's message, >I haven't had time to test it thoroughly: > > let b:match_words = '\<\(begin\|case\|catch\|do\|for\|if\|while\)\>:\<\(elsif\|when\)>:\(else\|ensure\):\' > >Many thanks for the pointer, Jamis! > >-Mark > > Thanks for the tips on installation, Mark--guess my post should have been more informative. :) My match_words variable is set to the following, which works well for me, in case anyone is interested: let b:match_words='\<\%(begin\|if\|do\|while\|case\|for\|until\|unless\|def\|class\|module\)\>:'. \ '\:'. \ '\<\%(else\|ensure\)\>:'. \ '\' -- Jamis Buck jgb3@email.byu.edu ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'