Closed kdurant closed 11 years ago
:help g:neocomplcache_same_filetypes
g:neocomplcache_same_filetype_lists
It is a dictionary to connect file type mutually. It is
effective at time to let you refer to c and cpp mutually.
The value are comma-separated filetypes.
If the value contains "_", neocomplcache completes from all
buffers. If the key is "_", the value will be used for default
same filetypes.
Note: neocomplcache completes from same filetype buffers in
default.
if !exists('g:neocomplcache_same_filetype_lists')
let g:neocomplcache_same_filetype_lists = {}
endif
" In c buffers, completes from cpp and d buffers.
let g:neocomplcache_same_filetype_lists.c = 'cpp,d'
" In cpp buffers, completes from c buffers.
let g:neocomplcache_same_filetype_lists.cpp = 'c'
" In gitconfig buffers, completes from all buffers.
let g:neocomplcache_same_filetype_lists.gitconfig = '_'
" In default, completes from all buffers.
let g:neocomplcache_same_filetype_lists._ = '_'
I set "let g:neocomplcache_same_filetype_lists = {}",but no effect.
You must set this.
let g:neocomplcache_same_filetype_lists = {}
" In default, completes from all buffers.
let g:neocomplcache_same_filetype_lists._ = '_'
I try it,but vim display "E121: 䶨ÒåµÄ±äÁ¿(undefine variable: g:neocomplcache_same_filetype_lists "
Did you initialized g:neocomplcache_same_filetype_lists
?
let g:neocomplcache_same_filetype_lists = {}
" In default, completes from all buffers.
let g:neocomplcache_same_filetype_lists._ = '_'
This still does not work. I only set
let g:neocomplcache_same_filetype_lists = {}
let g:neocomplcache_same_filetype_lists._ = '_'
it is ok now. May take time to analyze the buffer
Yes. You can make cache manually by :NeoComplCacheCachingBuffer
.
thank you! Also I hope that many file types you can use a dictionary file, how do I set up?
call neocomplcache#set_dictionary_helper({variable_name}, 'key1,key2,...', {value})
what's this? I can't find it in neocomplcache.txt
It is internal API. Not documented yet...
soryy ,I can't use it.