Re: Vim7 auto-downloading spell dictionary
Steve Hall wrote: On Wed, 2006-06-14 at 15:28 +0200, Bram Moolenaar wrote: Then Vim should offer you to download a missing spell file. I can't guess why this doesn't happen for you... I figured out my main problem: I had a beta (unstable) runtime with a bad URL. But now I'm noticing that it won't offer to download the file unless my username has permissions on the runtime /spell directory. Surely Vim doesn't expect that by default, do I need to create someplace in userland on rtp? (Which is no longer default.) You can set the 'verbose' option to 1 or higher to see messages about what happens. The mechanism is to look for a writable spell directory. It doesn't create one in ~/.vim for this purpose. Perhaps the plugin should only check for a writable runtime directory, and create the spell directory automatically? -- hundred-and-one symptoms of being an internet addict: 233. You start dreaming about web pages...in html. /// 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///
Re: Vim7 auto-downloading spell dictionary
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. 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? -- Minds, like parachutes, function best when open
Re: Vim7 auto-downloading spell dictionary
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///
Re: Vim7 auto-downloading spell dictionary
Andrei Voropaev wrote: On Wed, Jun 14, 2006 at 12:19:11PM +0200, Bram Moolenaar wrote: Andrei A. Voropaev wrote: 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? Yes, to both questions. Then Vim should offer you to download a missing spell file. I can't guess why this doesn't happen for you... If the Russian .spl file is loaded it should work. What misspelled Russian words are not highlighted as an error? Well, none of them. I've tried all possible mistakes :) It looks like it may have something to do with the formatting of the document. For example when I turn on the spelling on this email, then the quoted with lines don't undergo spell checking. That's normal. Spell checking only happens in areas where it makes sense. Quoted text is not to be edited, thus mistakes there aren't highlighted. The document I'm trying to check is an HTML file, so maybe the the html coding somehow prevents spell checking? Actually I've just tried it. If I use spellcheck in a_file.txt, then it works. When I try it on empty_file.html then it doesn't work. Perhaps the html syntax file needs to be updated. You can clear the 'filetype' to see all mistakes. -- hundred-and-one symptoms of being an internet addict: 201. When somebody asks you where you are, you tell them in which chat room. /// 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///
Re: Vim7 auto-downloading spell dictionary
On Wed, Jun 14, 2006 at 03:28:56PM +0200, Bram Moolenaar wrote: Andrei Voropaev wrote: The document I'm trying to check is an HTML file, so maybe the the html coding somehow prevents spell checking? Actually I've just tried it. If I use spellcheck in a_file.txt, then it works. When I try it on empty_file.html then it doesn't work. Perhaps the html syntax file needs to be updated. You can clear the 'filetype' to see all mistakes. Yep. This is the trick. After I've cleared filetype I started to see all of the mistakes. Then it means that syntax for html has to be updated. I have the version with Last Change: 2006 April 13. Is there any newer one? I've also tried spell checking for 'nl' language, vim did offer me to download it. Maybe I didn't notice that the first time. Sorry. -- Minds, like parachutes, function best when open
Vim7 auto-downloading spell dictionary
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.) -- Steve Hall [ digitect mindspring com ]