This is a Vim plugin to deal with *.html.erb files.
- tyru/open-browser.vim
- thinca/vim-quickrun
When a file named *.html.erb is loaded, this plugin adds two commands and default key mappings.
-
:HtmlErbCompile
Default key mapping: <LocalLeader>ll
This command QuickRuns *.html.erb. If successful, the result is put in an html file. The filename of the html is obtained by removing ".erb" from the current filename. (e.g. main.html.erb -> main.html)
-
:HtmlErbView
Default key mapping: <LocalLeader>lv
This command opens the corresponding html file, whose name is obtained by removing ".erb" from the current filename. (e.g. main.html.erb -> main.html)
This plugin also adds a filetype: the filetype of *.html.erb is set to be "htmlerb.eruby", i.e. htmlerb AND eruby.