This is a small VIm plugin that helps converting Haml files to Slim. The plugin opens the new Slim file in a new vertical split.
You'll need the haml2slim
Ruby
gem in order to work.
Recommended installation with vundle:
Bundle 'codegram/vim-haml2slim'
This mapping will convert the current Haml file:
" Haml2Slim.vim mapping
nnoremap <leader>h2s :call Haml2Slim(bufname("%"))<CR>
If you want to convert another Haml file, you can use the following command from inside your VIm.
:call Haml2Slim("path/to/file.haml")