add javascript hook for vim

This commit is contained in:
Felix Van der Jeugt 2015-10-27 09:32:45 +01:00
parent 162383be3f
commit fd2b17bfab

View File

@ -204,6 +204,19 @@ endfunction
" }}}
" JavaScript {{{
" ------------------------------------------------------------------ "
autocmd FileType javascript call JavaScriptHook()
function JavaScriptHook()
setlocal tabstop=2
setlocal shiftwidth=2
setlocal softtabstop=2
endfunction
" }}}
" Ruby {{{
" ------------------------------------------------------------------ "