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

Can not get fuzzy completion work with omnicomplete function #477

Closed anton-siardziuk closed 10 years ago

anton-siardziuk commented 10 years ago

There is my .vimrc

colorscheme mustango

set nocompatible
filetype off

set rtp+=/usr/local/go/misc/vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'nsf/gocode', {'rtp': 'vim/'}
Plugin 'Shougo/neocomplcache.vim'
call vundle#end()
filetype plugin indent on

syntax on
set cursorline
set number

let g:acp_enableAtStartup = 0
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_auto_completion_start_length = 1
if !exists('g:neocomplcache_omni_patterns')
    let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.go = '.'
"if !exists('g:neocomplcache_force_omni_patterns')
"   let g:neocomplcache_force_omni_patterns = {}
"endif
"let g:neocomplcache_force_omni_patterns.go = '.'
let g:neocomplcache_enable_fuzzy_completion = 1
let g:neocomplcache_fuzzy_completion_start_length = 1

Simple autocomplete from omnicomplete works fine: https://www.dropbox.com/s/5r4g9vb45oa5vv6/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202014-06-18%2021.04.22.png

But when I try to use fuzzy autocomplete, there are no completions from omnicomplete - only from something which is not very smart: https://www.dropbox.com/s/stgqn7dnf3obu1x/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202014-06-18%2021.05.40.png

And when I use _g:neocomplcache_force_omnipatterns instead of _g:neocomplcache_omnipatterns (commented lines in .vimrc) there is no fuzzy autocompletion at all.

Shougo commented 10 years ago

It is feature. In omni function, neocomplcache features are limited.