Based upon documentation there is explicitly a way to have multiple spell file for "spell" but I cannot, for the life of me, figure out how to use more than one spell file at the same time.
Under my current configuration I have two spell files, but I am unsure of how I got them. The first is, of course, the master spelling file for English, and the second is my custom words. I assume the custom word file was created upon my first instance of designating a word correct (pressing "zg"), and that seems to be indicated in the documentation.
What I would ideally like is to have four total spell files, configured as follows:
- the master "English" file with all of the standard English words.
- a second "custom" file which are for all the words that I use regularly, and are common across all file types.
- a file type specific spell file for words that I only use in certain files (e.g. tex, md etc.)
- a file for each individual document, for words that I only want registered as correct in that document.
I have the first two as it stands, and that seems to be the default. Based upon documentation it seems like the 4th should be possible as well, as the documentation seems to indicate that, at least for some versions of vim, the spell file would be contained in the same directory as the file in the buffer if not explicitly located elsewhere in .vimrc.
If this seems overly complicated, the logic is as follows. The need for files 1 and 2 are to keep from corrupting the English language by accidentally changing a standard spelling (which is probably why it is the default). File type 3 is so that I can put in custom commands that I will normally only use for certain file types, but I do not want those accidentally marked as good in other file types, when they would not be appropriate there. Finally, in each file I have words (usually names) which are correct within that file, and only that file, but which might be wrong elsewhere.
Any guidance is welcome.