I have two spelling addition files:
- ~/.vim/spell/en.utf-8.add
- ~/.vim/bundle/work/spell/en.utf-8.add
~/.vim/bundle/work is in my 'runtimepath'.
I can run this script to build .spl files for both .add files:
mkspell! ~/.vim/spell/en.utf-8.add
mkspell! ~/.vim/bundle/work/spell/en.utf-8.add
Without modifying 'spellfile', vim loads both en.utf-8.add.spl and detects words from both files.
Is there a command I can use to build the .spl files for all detected .add files (without having to list them all)?
zg
to add a word. It goes into the first .add. But sometimes I meant for it to go into the second. (I could set both as 'spellfile' and use2zg
, but still need a solution for when I accidentally usezg
.) When I edit the .add files, vim doesn't recognize my changes because they need to be recompiled. Possibly I could move words between files (zw2zg
?), but compiling seems much more straightforward. Sometimes, my vim config doesn't have the work bundle, so I wanted a single consistent command that ensures my spell files are compiled (which comes up very infrequently).