[vim/vim] Add markdownStrike syntax highlight group to builtin colorschemes (Issue #19372)

6 views
Skip to first unread message

ubaldot

unread,
Feb 9, 2026, 8:44:21 AM (yesterday) Feb 9
to vim/vim, Subscribed
ubaldot created an issue (vim/vim#19372)

I noticed that in-spite markdownStrike is defined in the bundled markdown.vim syntax file, it is not defined in a number of colorschemes.

It would be nice to include it.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19372@github.com>

Christian Brabandt

unread,
Feb 9, 2026, 9:43:06 AM (yesterday) Feb 9
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19372)

I don't follow. markdown sources html.vim syntax script which should define htmlStrike. So why would this not work?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19372/3871976456@github.com>

ubaldot

unread,
Feb 9, 2026, 12:19:38 PM (23 hours ago) Feb 9
to vim/vim, Subscribed
ubaldot left a comment (vim/vim#19372)

Try this:

vim --clean
:set ft=markdown
i~~foo~~<esc>

you will see foo.

Try to change coloscheme (e.g. try :colorscheme catppuccin) and you foo. becomes ~~foo~~.

You could also set a colorscheme first, and then type ~~foo~~. The strikethrough won't be displayed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19372/3872840919@github.com>

Christian Brabandt

unread,
Feb 9, 2026, 1:27:07 PM (22 hours ago) Feb 9
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19372)

Hm, I think we rather need to promote Strikethrough to a new default group, similar to what was asked for in #17804

What do you think @habamax @dkearns ?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19372/3873243963@github.com>

Maxim Kim

unread,
Feb 9, 2026, 5:22:25 PM (18 hours ago) Feb 9
to vim/vim, Subscribed
habamax left a comment (vim/vim#19372)

markdownStrike and htmlStrike works for me (in gui, not in tui as I don't have a terminal that supports it) despite not being defined in bundled colorschemes.

The issue is the same as with bold, italic and bolditalic --> when you change colorschemes, explicit highlights (non-def-linked highlight groups) are cleared so this

image.png (view on web)

after colorscheme ... becomes this

image.png (view on web)

The workaround is to re-set filetype (set ft=markdown or :e)

The fix might be

  1. define Strikethrough default highlight group
  2. in all relevant syntax files change explicit definition of cterm=strikethrough ... to (example) hi def link htmlStrike Strikethrough

PS, bold, italic and bolditalic are supported by probably most of existing terminal emulators, strikethrough is not so widespread.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19372/3874177702@github.com>

Reply all
Reply to author
Forward
0 new messages