From 902e8ce4a1b88d7eb714f2f3c14d75e1493d81ed Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 28 Feb 2017 11:26:41 +0100 Subject: Add CoffeeScript ftdetect & ftplugin files Blech, CoffeeScript! Having to read & write some recently, so add support for it. --- ftplugin/coffee.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ftplugin/coffee.vim (limited to 'ftplugin') 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 +nnoremap o o +nnoremap O O + + +" Comment string +setlocal commentstring=#\ %s -- cgit v1.2.3