Hi all :)

I'm having a problem with spell files, I know which problem is and the
probable cause, but I can't fix it. I've checked the help and googled a
bit with no success.

I currently have "spelllang=en,es", because I write in both languages a
lot, and this is what ":spellinfo" says:

file: /usr/share/vim/vim71/spell/en.utf-8.spl
file: /home/user/.vim/spell/es.utf-8.spl

So far, so good. Then I add some word using "zg" and "2zg" to my two
"add files", one for each language I'm using. I execute ":spellinfo"
again, and I have the following:

file: /home/user/.vim/spell/en.utf-8.add.spl
file: /usr/share/vim/vim71/spell/en.utf-8.spl
file: /home/user/.vim/spell/es.utf-8.spl
file: /home/user/.vim/spell/es.utf-8.add.spl

Cool! This works like a charm :) But let's go out from Vim and relaunch
it again (launching another instance makes the problem happen too, but
only in the new instance of course). I execute ":spellinfo" again, but
this is what I have this time:

file: /home/user/.vim/spell/en.utf-8.add.spl
file: /usr/share/vim/vim71/spell/en.utf-8.spl
file: /home/user/.vim/spell/es.utf-8.spl

As you can see, the "es.utf-8.add.spl" is missing. This is bad, but
things can be even worse. Let's edit "es.utf-8.add" by hand, adding some
words, and do ":mkspell! %". Then relaunch Vim and do ":spellinfo". This
is what I have now:

file: /home/user/.vim/spell/en.utf-8.add.spl
file: /usr/share/vim/vim71/spell/en.utf-8.spl
file: /home/user/.vim/spell/es.utf-8.add.spl

Now the main ES spell file is missing! Looks like Vim has a max of three
files, or maybe this has something to do: 
'spellfile' 'spf'       string  (default empty)
[...]
    Normally one file is used for all regions, but you can add the region
        name if you want to.  However, it will then only be used when
        'spellfile' is set to it, for entries in 'spelllang' only files
        without region name will be found.                              

I don't use region names in my files, but...

These are the contents of my "spellfile" option:
/home/user/.vim/spell/en.utf-8.add,/home/user/.vim/spell/es.utf-8.add

What am I doing wrong? Why I have the four files loaded the first time,
only three the rest of times?

Thanks a lot in advance and sorry for the weird question O:)

Raúl "DervishD" Núñez de Arenas Coronado
-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!
We are waiting for 13 Feb 2009 23:31:30 +0000 ...

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to