Ruby Text Objects
Today I discovered the amazing Ruby text objects feature of the plugin Vim-ruby.
Vim-ruby give us these four objects:
-
am
('a method') -
im
('inner method') -
aM
('a class') -
iM
('inner class')
These can be composed with d
, c
, and v
to build great editing tools like cim
(change inner method) or vaM
(select a class).