diff --git a/vim/vimrc b/vim/vimrc index 5a307ee..f76fde8 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -204,6 +204,19 @@ endfunction " }}} +" JavaScript {{{ +" ------------------------------------------------------------------ " + +autocmd FileType javascript call JavaScriptHook() + +function JavaScriptHook() + setlocal tabstop=2 + setlocal shiftwidth=2 + setlocal softtabstop=2 +endfunction + +" }}} + " Ruby {{{ " ------------------------------------------------------------------ "