neocomplete.vim
neocomplete.vim copied to clipboard
Cannot complete WORDs in dictionary
"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.
Which is the filetype?
neocomplete make dictionary cache using g:neocomplete#keyword_patterns variable.
So, you can custom the pattern.
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*'}
Yes.