add javascript hook for vim
This commit is contained in:
parent
162383be3f
commit
fd2b17bfab
1 changed files with 13 additions and 0 deletions
13
vim/vimrc
13
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 {{{
|
" Ruby {{{
|
||||||
" ------------------------------------------------------------------ "
|
" ------------------------------------------------------------------ "
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue