首页 > 代码库 > vim中对javascript的设置

vim中对javascript的设置

"start JavaScript loading
"打开JAVA折叠
let b:javascript_fold = 1
"打开JavaScript对dom.html.css的支持
let javascript_enable_domhtmlcss=1
"设置JavaScript字典
if has("autocmd")
"    au Filetype java setlocal omnifunc=javacomplete#Complete
"    au Filetype html setlocal omnifunc=htmlcomplete#CompleteTags
"    au FileType css setlocal omnifunc=csscomplete#CompleteCSS
"    au FileType c setlocal omnifunc=ccomplete#Complete
"    au FileType php setlocal omnifunc=phpcomplete#CompletePHP
"    au FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
    au FileType html setlocal omnifunc=javascriptcomplete#CompleteJS
endif

"autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
"end JavaScript loading