Tim Chase
unread,Aug 27, 2025, 9:29:47 PM (8 days ago) Aug 27Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vim Users
Taking some notes, I have a lot of page-references of the form "p12",
"p35-36", etc. With 'spell' set, it highlights them as misspelled
words. However, I can formulate a regex that would identify these:
/\<p\d\+\%(-\d\+\)\=\>/
Is there a way to convey this information to vim so that they get
ignored for spellcheck purposes?
I know there's some highlight-group aspect that might be usable,
contains=@NoSpell
as detailed at `:help spell-syntax`, so I think I have the relevant
pieces, but am just failing to put them together in the right way
(writing syntax files is not my forte)
What do I need to do to assemble these so spell-checking ignores my
page-number ranges?
Thanks,
-tim
--