I want to keep my Vim spelling synchronised across machines. For that reason I put my spelling file
into Dropbox by adding
set spellfile=$HOME/Dropbox/vim/spell/en.utf-8.add to my .vimrc. It
worked just fine for a single language.
When I've added another spelling file for Ukrainian by changing
'spellfile' value to
$HOME/Dropbox/vim/spell/en.utf-8.add,$HOME/Dropbox/vim/spell/uk.utf-8.add it gets ignored.
adds a word to en.utf-8.add instead of uk.utf-8.add. Words are added to the correct file when
2zg but that's not what I want to do manually.
How can I make Vim use correct spelling file based on
I've read Vim help on
'spellfile' and it says:
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.
Initialy I've thought it means regions like
en_gb. Do I misunderstand something?
Another even better option would be to change location /spell directory location to live outside .vim/