add javascript hook for vim
This commit is contained in:
parent
162383be3f
commit
fd2b17bfab
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…
Reference in New Issue
Block a user