T{i<80>kbdo^M^[/}^Ms^Mend^[k
Turn a {}
single line block into a do..end
block.
Example:
expect { something.run }.to raise_error
With the macro stored in the d
register, place your cursor inside the curly braces and press @d
. The braces will expand to:
expect do
something.run
end.to raise_error