简体   繁体   中英

Why doesn't the vim command viB work in ruby?

I would like to select the inner contents of a do/def..end block

def foo
    bar
end

eg bar would be selected above when hitting viB in the same way bar would be selected below in C:

void foo() {
    bar;
}

I know it probably only works for curly braces, but is there a way to make it work for do/end?

如果您倾向于在定义前后留空(如我一样),则可以使用vip突出显示一段。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM