Toggle Ruby block syntax with vim-blockle:
let(:thing) do
double(Thing, foo: :bar)
end
Move your cursor inside the block, and then press <Leader>
b
let(:thing) { double(Thing, foo: :bar) }
To install, add it to Vundle:
Bundle 'jgdavey/vim-blockle'
Thanks to @nicholaides for pointing it out.