如何获取vim的区域拼写文件?我想要,例如de_DE
作为拼写语言。帮助建议使用http://extensions.services.openoffice.org/dictionary,但我不知道如何从中创建拼写文件。我还发现了https://github.com/ganwell/vim-hunspell-dicts,但说明也没有帮助。
答案 0 :(得分:1)
Vim帮助包含spellfile.vim
插件以自动下载丢失的拼写文件:
:set spelllang=de_DE
:set spell
Cannot find spell file for "de" in utf-8
Do you want me to try downloading it?
(Y)es, [N]o: Y
Downloading de.utf-8.spl...
:!curl 'http://ftp.vim.org/pub/vim/runtime/spell/de.utf-8.spl' -o '/tmp/vRnqpoy/2.spl'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
"/tmp/vRnqpoy/2.spl" [noeol] 5996L, 2388148C
In which directory do you want to write the file:
1. /home/martin/.vim/spell
[C]ancel, (1): 1
"~/.vim/spell/de.utf-8.spl" [New] 5996L, 2388149C written
如果这对您不起作用,请尝试使用:verbose set spell
查看该插件未下载任何内容的原因。