Shougo/neocomplcache — Issue #133: Disable completion based on filetype and completefunc
Author: ronin13
Created: 2011-12-23 17:21:36+00:00
State: open

For a particular filetype -- in this case ft=mail I want to use a custom completion function (based on lbdbq) .

So I have
autocmd VimEnter FileType mail set completefunc=LBDBCompleteFn (LBDBCompleteFn is defined elsewhere)

But I see that neocomplcache overwrites it in its line changed autocmd or some other.

Is there a way to disable this ? I see that there is an option for neocomplcache to prevent other plugins from overwriting completefunc but is it possible to prevent other way around ?

If this is not possible, is it possible to do this in neocomplcache itself -- I checked that you can bind filetypes to dictionary files, I don't want that. I also tried binding it with g:neocomplcache_omni_functions but that doesn't seem to be working.