Upgrade ruby to 2597860
Try endwise

https://github.com/tpope/vim-endwise