2012-07-20 30 views
7

我打算在VIM中設置自動完成(intellisense)。爲此,我正在使用NeoComplCache插件,該插件可以正常工作,但它並不顯示所有的條目,這些條目不包含C-xC-o。例如,NeoComplCache不顯示任何新創建的函數,變量或類,而omnicomplete顯示它們很好。使NeoComplCache顯示像omnicomplete相同的匹配

我有這個在我的_vimrc:

autocmd FileType php set omnifunc=phpcomplete#CompletePHP 
let g:neocomplcache_enable_at_startup = 1 
let g:neocomplcache_enable_auto_select = 1 
let g:neocomplcache_min_syntax_length = 1 

有沒有辦法告訴NeoComplCache來顯示這些條目,以及使Vim的默認C-XC-O項目說明了什麼?

感謝

+0

感謝您的支持。我使用SPF-13,沒有第一行。我想知道爲什麼它不是omnicompleting。 – 2013-06-13 17:25:35

回答

0
if !exists('g:neocomplcache_omni_patterns') 
    let g:neocomplcache_omni_patterns = {} 
endif 

let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::' 

neocomplcache.txt我想,這可能會奏效。