In one of the Eclipse-based editors that I tried out recently (I think it was RubyMine), when a Ruby keyword that either opened or closed a method or block was selected, the corresponding open/close keyword was highlighted. 类似于 Vim 能够突出显示相应的开/关括号的方式。
例如,如果我选择了“def”,它将突出显示相应的“end”。它也适用于 do/end 块。
这真的很方便,尤其是对于那些冗长且有时嵌套很重的 Rspec 文件。
有人知道如何在 Vim 中实现这一点吗?