Today, I Learned...

by Justin Campbell

< All

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.

February 11th, 2014