Hi everyone, has anyone written a vim function to toggle/convert ruby block types? ie:
{ |x| puts x }
toggled becomes:
do |x|
puts x
end
toggled becomes:
{ |x| puts x }
again
So if the cursor is within the {} or between the do/end hitting a mapped
'toggle key' will convert one to the other.
If not any ideas what would be the best way to attack this? Thought I'd
ask before I try to reinvent the wheel.
--
Mark
