0

My current Vim installation on Windows appears to have default syntax highlighting for Markdown, which is nice.

However, there is one particular highlight which I don't really like, and that is the highlight for emphasized text:

enter image description here

I find it rather distracting that it changes all emphasized text to this bright yellow color. Is there any way I can customize that?

1
  • Use gvim to have proper italics or wsl vim in mintty/wsltty or windows terminal.
    – Maxim Kim
    Commented Feb 3, 2022 at 18:38

1 Answer 1

1

Once you find the highlight group (markdownItalic, in this case), you can customize it as follows:

augroup fix_markdown_italic
  autocmd!
  autocmd ColorScheme * highlight markdownItalic …
augroup end
  1. The * pattern makes this override effective for any colorscheme; you might prefer instead to target a specific one. (This also assumes the colorscheme is more at fault than the syntax rules; you could probably get away with putting the :highlight markdownItalic … bit in ~/.vim/after/syntax/markdown.vim, too.)
  2. Replace the with any custom :highlight arguments you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.