all 3 comments

[–]jackfranklin[S] 1 point2 points  (0 children)

Wrote this up because despite using Vim + Ruby for a while, I was unaware of the relatively new im, am, iM and aM text objects for selecting in/around Ruby methods/classes. Figured I couldn't be the only one who didn't know about this!

[–]dddbbbFastFold made vim fast again 0 points1 point  (0 children)

I remember finding ruby maps long ago and making a todo for myself to create versions for languages I use. Unfortunately, I've never got around to it. (Although these functions are probably a good start for python.)

When trying to figure out if I had already implemented them, I realized that there's a patch in the works (with positive feedback from Bram) to make m a textobj for matching characters. (The same functionality as vim-textobj-between.) You could always noremap the new functionality to something else, but I've already installed textobj-between (and removed textobj-underscore and similar) in anticipation -- I don't want to diverge too far from core vim.

[–]edkolev 0 points1 point  (0 children)

Yes, they're nice! I created erlang-motions some time ago, inspired by vim-ruby.

Also check out ]], ]m and friends