Andrei A. Voropaev wrote: > On Wed, Jun 14, 2006 at 10:37:45AM +0200, Bram Moolenaar wrote: > > > > Steve Hall wrote: > > > > > Does the vim7 automatic downloading of a new spellcheck dictionary > > > work as advertised in :help spellfile.vim? The command in help is: > > > > > > autocmd SpellFileMissing * call > > > Download_spell_file(expand('<amatch>')) > > > > > > but in spellfile.vim is: > > > > > > autocmd SpellFileMissing * call spellfile#LoadFile(expand('<amatch>')) > > > > > > I was just getting ready to write this feature until I saw it in the > > > help, but I can't get either to work. (And don't even grep the first > > > in any runtime file.) > > > > Vim 7 should already offer downloading a missing spell file out of the > > box. But only when plugins are loaded, since > > $VIMRUNTIME/plugin/spellfile.vim is used. > > Looks like on my system something is not configured properly. At least > when I tried to do spell check for russian, vim told me that I don't > have the dictionary, but it didn't offer to download the dictionary.
Does the file $VIMRUNTIME/plugin/spellfile.vim exist? Does spellfile.vim appear in the output of ":scriptnames"? > I've downloaded it manually (ru.utf-8.spl and ru.utf-8.sug) and now the > command > > :setlocal spell spelllang=ru > > does not produce any errors, but it does not do any spell checking > neither. It only marks words written in English :) > > :spellinfo gives > > file: ~/.vim/spell/ru.utf-8.add.spl > file: /usr/share/vim/vim70/spell/ru.utf-8.spl > > So, what did I do wrong? Do I have to do anything special to load > spellfile.vim plugin? If the Russian .spl file is loaded it should work. What misspelled Russian words are not highlighted as an error? -- hundred-and-one symptoms of being an internet addict: 197. Your desk collapses under the weight of your computer peripherals. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///