I'm using vim with php omnicompletion on in a large project. I have a ctags file and using:
au FileType python set omnifunc=pythoncomplete#Complete
au FileType php set omnifunc=phpcomplete#CompletePHP
au FileType javascript set omnifunc=javascriptcomplete#CompleteJS
au FileType html set omnifunc=htmlcomplete#CompleteTags
au FileType css set omnifunc=csscomplete#CompleteCSS
au FileType xml set omnifunc=xmlcomplete#CompleteTags
set complete=""
set complete+=.
set complete+=k
set complete+=b
set complete+=t
in my config
Currently omni complete will complete php built ins after 5+ seconds. It will not complete anything from my tags list, however <C-p>
will complete items from the tags list. I had thought the complete=t would check the tags file.
Tags completion via <C-p>
is very fast, so not sure what is weighing down my omni completion to be so amazingly slow.
If I edit a fresh .php file in my home dir vs this project dir the php built in omni complete is quick.
Thanks for any tips/help is debugging this. Ideally I'd like to have omni doing both built in and ctags completion together as seems to be suggested by the complete=t docs.