aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftdetect/htmlerb.vim1
-rw-r--r--ftplugin/htmlerb.vim4
2 files changed, 5 insertions, 0 deletions
diff --git a/ftdetect/htmlerb.vim b/ftdetect/htmlerb.vim
new file mode 100644
index 0000000..d0a08ee
--- /dev/null
+++ b/ftdetect/htmlerb.vim
@@ -0,0 +1 @@
+autocmd BufRead,BufNewFile *.html.erb set filetype=htmlerb syntax=eruby
diff --git a/ftplugin/htmlerb.vim b/ftplugin/htmlerb.vim
new file mode 100644
index 0000000..23c7c0b
--- /dev/null
+++ b/ftplugin/htmlerb.vim
@@ -0,0 +1,4 @@
+" Ruby/Rails HTML ERB settings
+
+" Inherit HTML settings
+runtime! ftplugin/html.vim