refactor: extract method from write_vim_spell()