Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

candidates disappear in python standard package member complete #437

Closed lookforit closed 11 years ago

lookforit commented 11 years ago

Hi Shougo, when i import a standard package(module) in python, type the dot behind the package name,the members can be listed correctly: module1

but when i input a character , the canditates(begin with this character) are not poped up: module2

for this case , the itemtime and timedelta should appear.

by the way, i used jedi-vim ,but i ignored jedi's behavior after dot :

let g:jedi#auto_vim_configuration = 0
let g:jedi#popup_on_dot = 0
Shougo commented 11 years ago

I think it is pattern problem.

let g:neocomplcache_force_omni_patterns.python = '[^. \t]\.\w*'

You should use neocomplete instead of neocomplcache.

lookforit commented 11 years ago

Thanks, it solved.

But the mru and fuzzy match features can't be applied to standard package member completing. So i wonder can neocomplete reach that?

Shougo commented 11 years ago

But the mru and fuzzy match features can't be applied to standard package member completing.

It is force omni patterns feature.

So i wonder can neocomplete reach that?

If you use force omni patterns, it is same behavior. But if you use omni patterns, these features are enabled.