aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/eruby.vim
diff options
context:
space:
mode:
authorTeddy Wing2015-01-24 00:34:05 -0500
committerTeddy Wing2015-01-24 00:37:32 -0500
commitffd0ac55b3dce9ebb2f53de726e6e43eeb9587e9 (patch)
treed30ed1724007807181be09b41f9f833e0696e9f6 /ftplugin/eruby.vim
parent4c2aae516a0cde654cc4d17e2fae6846fa8c1551 (diff)
downloaddotvim-ffd0ac55b3dce9ebb2f53de726e6e43eeb9587e9.tar.bz2
Create ftplugin/eruby.vim with indentation settings
Looks like ERB files would take their indentation settings from the ruby setting (2 spaces). I want 4-space indentation in my ERB, at least typically that's what I want when I'm writing HTML with embedded ruby. Apply that accordingly.
Diffstat (limited to 'ftplugin/eruby.vim')
-rw-r--r--ftplugin/eruby.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim
new file mode 100644
index 0000000..4aeda73
--- /dev/null
+++ b/ftplugin/eruby.vim
@@ -0,0 +1,6 @@
+" ERB vim settings
+
+" Indentation
+setlocal tabstop=4
+setlocal softtabstop=4
+setlocal shiftwidth=4