neocomplete.vim icon indicating copy to clipboard operation
neocomplete.vim copied to clipboard

Cannot complete WORDs in dictionary

Open Asymp opened this issue 13 years ago • 3 comments

"WORDs" in buffer, like "foo_bar_123", can be completed.

but if the "WORD" is in dictionary, it can only list separate "words", like "foo" and "bar", but not the whole WORD.

Is there some setting to change this? Thank you very much.

Asymp avatar Sep 12 '13 02:09 Asymp

Which is the filetype? neocomplete make dictionary cache using g:neocomplete#keyword_patterns variable. So, you can custom the pattern.

Shougo avatar Sep 12 '13 02:09 Shougo

Thanks, problem solved.

The file type is tex, and the dictionary is a bib file. I want to complete bibtex keys like "author_title_year".

Set this works:

let g:neocomplete#sources#dictionary#keyword_patterns={'tex' : '\h\w*_\w*'}

Asymp avatar Sep 12 '13 05:09 Asymp

Yes.

Shougo avatar Sep 12 '13 05:09 Shougo