Skip to content

Do spell checking in comments only #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scy
Copy link

@scy scy commented May 31, 2025

This will also disable spell checking for all other syntax items, like directive names and strings, which is probably the right thing to do.

Before, with spell checking enabled, things like srv and www would be marked as errors, and directives following a comment that ended with a full stop would be marked as grammar mistakes (since Vim expects you to start with a capital letter after ending a sentence). This is how it looked:

image

This PR fixes the behavior by designating comments as the only part of the file that should be spell checked. See :h spell-syntax for details.

This will also disable spell checking for all other syntax items, like
directive names and strings, which is probably the right thing to do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant