Skip to content

codegram/vim-haml2slim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

vim-haml2slim

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.

Prerequisites

You'll need the haml2slim Ruby gem in order to work.

Installation

Recommended installation with vundle:

Bundle 'codegram/vim-haml2slim'

Recommended mapping and usage

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")

About

A small VIm plugin that helps you convert your Haml views to Slim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published