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

jedi-vim problem in Neo V8.1 #411

Closed lookforit closed 11 years ago

lookforit commented 11 years ago

Hi, in order to make jedi-vim integrated with Neocomplcache , i add the following to _vimrc:

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

But vim will report error when starup : E121: Undefined variable: g:neocomplcache_force_omni_patterns

So what's wrong with it ?

By the way ,the fuzzy matching in V8.1 is very cool :+1:

Shougo commented 11 years ago

You should write this.

if !exists('g:neocomplcache_force_omni_patterns')
  let g:neocomplcache_force_omni_patterns = {}
endif
let g:neocomplcache_force_omni_patterns.python = '[^. \t]\.\w*'

By the way ,the fuzzy matching in V8.1 is very cool

Thanks.

lookforit commented 11 years ago

I correct the configuration ,and no error appears now . But jedi seems still don't work integrated with Neo . For example ,the word "urllib" in python can be popped up by jedi ,but can't be listed by Neo automatically .

Shougo commented 11 years ago

For example ,the word "urllib" in python can be popped up by jedi ,but can't be listed by Neo automatically .

This is your pattern's problem.

The pattern "[^. \t]\.\w*' is not matched to "urllib". It is feature.

lookforit commented 11 years ago

Ok,got it . But i 'm still wondering how to expand the pattern to make Neo use the full completion power of Jedi.

Shougo commented 11 years ago
let g:neocomplcache_force_omni_patterns.python = '\h\w*\|[^. \t]\.\w*'

This is full power completion. But too slow.

lookforit commented 11 years ago

This is full power completion.

Yes ,it works.But truly a bit slow......

Another issue is the fuzzy match and mru feature cann't apply to jedi by now?

Shougo commented 11 years ago

Another issue is the fuzzy match and mru feature cann't apply to jedi by now?

Yes. Because you use g:neocomplcache_force_omni_patterns. In g:neocomplcache_force_omni_patterns, neocomplcache features(fuzzy match, mru, ...) is disabled. You can use g:neocomplcache_omni_patterns instead of g:neocomplcache_force_omni_patterns. But the complete function may not work.

lookforit commented 11 years ago

After tried let Neo with full completion of jedi for couple of hours, I prefer to trigger jedi completion by hand. Because some precious features of Neo is overwritten in that way.

HerringtonDarkholme commented 10 years ago

Is it possible to use g:neocomplcache_force_omni_patterns while keeping auto-select feature enabled?

Shougo commented 10 years ago

No. Because, g:neocomplcache_force_omni_patterns cannot use neo features.