Skip to content

Ship UTF-8 affix files for spell checking #3747

@tangentsoft

Description

@tangentsoft

For English, at least, Vim currently does not ship spell/en/main.aff, which means that text like the following is flagged with a spelling error:

 I don‘t like Emacs.

Note the curled Unicode quote.

Adding the following as the content of a new file called .../spell/en/main.aff fixes it:

SET utf-8
MIDWORD '-‘

I want this done in the main project because some packaging schemes cause local changes like that to be lost on updates. My immediate use case is MacVim, where /Applications/MacVim.app/ is deleted before the new one is unpacked, but this may happen with other packaging schemes.

I realize this will cause Vim to assume UTF-8, but I think that's been a safe default for years now.

EDIT: I've just discovered that I can solve the packaging problem by saving the file as ~/.vim/spell/en/main.aff, which was not clear to me from my skimming of :help spell. (I say "skim," but I must have spent half an hour on it yesterday. I just mean that I didn't read it word-for-word.) I don't consider this a complete solution to this issue, though, because I still think this should be part of the current distribution of Vim.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions