Run this command:
git clone https://github.com/trayo/vim-ruby-collapse.git ~/.vim/bundle/vim-ruby-collapse
Add this line to your .vimrc
:
Plugin "trayo/vim-ruby-collapse"
Some functions that make it easier to collapse and uncollapse if/else, ternary, do/end and { }.
VimL