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

vim中对javascript的设置,布布扣,bubuko.com

vim中对javascript的设置

上一篇:C++开源库


下一篇:[C++程序设计]用指向数组的指针作函数参数