Have omnifunc and completefunc take precedence over supertabs

1.1k Views Asked by At

Possible Duplicate:
Checking omnifunc before Supertags

How do I have Vim check if any Omni completion or complete-functioning can be done before defaulting to Supertab completion? For example in a .html file I would enter

1

There are 1 best solutions below

0
On

I have the following settings for supertab:

let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabContextTextOmniPrecedence = ['&omnifunc', '&completefunc']

the setting context for supertabdefaultcompletion makes supertab use omni comppletion if the context is appropiate (eg, if you are in c++ file and type ::). If the context is not appropriate it will just return the default completion (ctrl-p).