In vim, I am editing the filetype file "markdown", but which contains mathematical latex expressions such as $ x_i $. Highlighting Vim's syntax for markdowns considers the * _ * (letter-underscore-letter) pattern to be a mistake and emphasizes underlining in such bright colors. I would like to disable this by adding a line to my .vimrc:
autocmd BufEnter *.Rmd "Dear vim, please don't highlight the pattern *_*"
What is the appropriate command for this? Is it even possible to do this in .vimrc without editing the syntax file?
Note. I want to keep markup syntax highlighting as a whole, disable only this function.
source
share