diff options
Diffstat (limited to 'ftplugin/coffee.vim')
-rw-r--r-- | ftplugin/coffee.vim | 17 |
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 |