Say I am mixing English and German in my documents and have my spelllang variable set accordingly. How do I indicate, when I want to mark a word as good, to which spellfile it is to be added?

  • 6
    If you provide a list of spellfiles, zg takes a count to decide which spellfile to add to.
    – muru
    Feb 8, 2016 at 20:22

1 Answer 1


The credits goes to @muru for this answer since his comment gave the solution 3 months ago. I write this answer to let users searching for this question know that it has a solution.

The variable spellfile may be a comma separated line of files. Those files are used to add "good words".

The command zg allows to add a "good word" to the files in spellfile. By default the good word will be added to the first entry of spellfile but when used with a count the command will add the word to the nth file listed in spellfile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.