【发布时间】:2020-01-24 03:04:52
【问题描述】:
我是 VIM/NEOVIM 的新手,我想在我的 .vimrc 中创建一个基本命令,让我的 deoplete 自动完成功能使用英语和德语词典。我的 .vimrc 中已经有以下内容:
set dictionary=/usr/share/myspell/de_AT.dic
set dictionary+=/usr/share/myspell/en_US.dic
call deoplete#custom#source('dictionary', 'matchers', ['matcher_head'])
call deoplete#custom#source('dictionary', 'sorters', [])
call deoplete#custom#source('dictionary', 'min_pattern_length', 4)
但这不起作用,我没有收到来自 deoplete 的任何建议。如果我可以像使用拼写检查器那样动态地交换自动补全(见下文),那还有什么好处呢?这可能吗?
set nospell
map <silent> <leader>de :setlocal spell spelllang=de_at spelllang? <CR>
map <silent> <leader>en :setlocal spell spelllang=en_us spelllang? <CR>
map <silent> <leader>ns :setlocal nospell spelllang= spell? <CR>
【问题讨论】:
标签: vim autocomplete spell-checking