The usecase:

When writing on historical subjects I commonly use the abbreviations "1stC,
2ndC, 3rdC, 4thC, ...; 1stM, 2ndM, 3rdM, 4thM, ..." where "C" stands for
"century" and "M" stands for "millennium".

The problem:

In Markdown files (and probably everywhere) when 'spell' is activated "stC,
ndC, rdC, thC" get highlighted as wrong while the number before them get
highlighted as, well, numbers. I tried to add 1..30 + the right suffixes to
my spellfile to no avail. I obviously can add "stC" and so on but I want
"1thC, 2thC, 3thC, 4stC, ..." to be flagged as wrong, and indeed those
suffixes when not preceded by an integer as wrong.

Tried fix:

Adding '\v<\d*[123]th[CM]>', '\v%(<\d+@<!)th[CM]>' etc highlighted as
SpellBad with matchadd() or to a file in my ~/.vim/after/syntax directory.
While this kind of works it has the slight downside that it's active when
'spell' is not and the serious downside that I can't use =z on them.

Better fix:

Any?

TIA,

/Benct

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/CADAJKhBmMMWhYfcrXwXy8NEEmNX2SPpEjznRsdwZr-3RV%2BSAXw%40mail.gmail.com.

Reply via email to