Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding dictionary #20

Closed
257 opened this issue Jun 28, 2013 · 6 comments
Closed

adding dictionary #20

257 opened this issue Jun 28, 2013 · 6 comments

Comments

@257
Copy link

257 commented Jun 28, 2013

i have a question about adding /usr/share/dict/words to it. my attempts so far has been to append this (when mutt calls vim for editing mail):

let g:neocomplcache_dictionary_filetype_lists = {
\ 'dict' : '/usr/share/dict'
\ }

to .vimrc but i've had not luck getting neocomplete to query 'words' file
under dict/

@257
Copy link
Author

257 commented Jun 28, 2013

and no luck with this either:

let g:neocomplete#sources#dictionary#dictionaries = {
\ 'default' : '',
\ 'dict' : '/usr/share/dict/words',
\ 'c' : $HOME.'/PluginConfig/neocomplete/c.dict',
\ 'txt' : $HOME.'/PluginConfig/neocomplete/verilog.dict',
\ 'verilog' : $HOME.'/PluginConfig/neocomplete/verilog.dict',
\ }

btw, vim is running on linux

@Shougo
Copy link
Owner

Shougo commented Jun 29, 2013

i have a question about adding /usr/share/dict/words to it. my attempts so far has been to append this (when mutt calls vim for editing mail):

You should use this source instead of dictionary.

https://github.com/ujihisa/neco-look

@257
Copy link
Author

257 commented Jun 29, 2013

hmm, not working here. anything that i need to add to .vimrc?

@Shougo
Copy link
Owner

Shougo commented Jun 29, 2013

It is worked in text mode filetype or comments only.

@257
Copy link
Author

257 commented Jun 29, 2013

i see:
if !(neocomplete#is_text_mode() || neocomplete#within_comment())

is it possible to do it with filetype? in particualr fileype=mail where this would be really useful.

@Shougo
Copy link
Owner

Shougo commented Jun 29, 2013

:help g:neocomplete#text_mode_filetypes

@Shougo Shougo closed this as completed Sep 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants