diff options
| -rw-r--r-- | ftdetect/coffee.vim | 1 | ||||
| -rw-r--r-- | ftplugin/coffee.vim | 17 | 
2 files changed, 18 insertions, 0 deletions
| diff --git a/ftdetect/coffee.vim b/ftdetect/coffee.vim new file mode 100644 index 0000000..469e0cf --- /dev/null +++ b/ftdetect/coffee.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.coffee  set filetype=coffee syntax=javascript 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 | 
