t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Use `%` to match pair in Ruby #1142

Open gosukiwi opened 4 years ago

gosukiwi commented 4 years ago

First of all, I tried reading the README but I'm not quite sure what Any Pair is, if that has anything to do with my issue.

What I want to do is by pressing %, go to pair in Ruby code, so for example, matching def with end (also for classes, modules, etc):

+ -- cursor here
|
v
def foo
  # ...
end

def foo
  # ...
end
^
|
+ -- cursor here after pressing `%`

Is there a way to do it?