aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/coffee.vim
diff options
context:
space:
mode:
authorTeddy Wing2017-02-28 11:26:41 +0100
committerTeddy Wing2017-02-28 11:28:46 +0100
commit902e8ce4a1b88d7eb714f2f3c14d75e1493d81ed (patch)
tree97245e7c92720ae16915c281d5907533542e5d36 /ftplugin/coffee.vim
parent4fd9d7fbc506724e1a66aa85bd3839409dea885e (diff)
downloaddotvim-902e8ce4a1b88d7eb714f2f3c14d75e1493d81ed.tar.bz2
Add CoffeeScript ftdetect & ftplugin files
Blech, CoffeeScript! Having to read & write some recently, so add support for it.
Diffstat (limited to 'ftplugin/coffee.vim')
-rw-r--r--ftplugin/coffee.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim
new file mode 100644
index 0000000..fc06b0f
--- /dev/null
+++ b/ftplugin/coffee.vim
@@ -0,0 +1,17 @@
+" CoffeeScript vim settings
+
+" Indentation
+setlocal expandtab
+setlocal tabstop=2
+setlocal softtabstop=2
+setlocal shiftwidth=2
+
+
+" Don't preserve indentation on empty lines
+inoremap <buffer> <CR> <CR>
+nnoremap <buffer> o o
+nnoremap <buffer> O O
+
+
+" Comment string
+setlocal commentstring=#\ %s