3

AFAIK vimwiki's markdown syntax doesn't emphasize in any way blockquotes. I mean:

> This is a quote 

is presented instead as simple text. For reading notes it can be confusing. So, how do you highlight both the > and the quote?

5
  • I'm pretty sure https://github.com/sheerun/vim-polyglot has highlighting for block quotes, if that's an option. Commented Oct 17, 2020 at 14:13
  • I've tried several colorschemes, both dark and light versions, and not a single one highlights either the > nor the whole block of text, @D.BenKnoble Commented Oct 17, 2020 at 17:29
  • I found no definition for markdownBlockquote in https://github.com/blueshirts/darcula/blob/master/colors/darcula.vim. It has only extra headers highlighting. Commented Oct 17, 2020 at 18:32
  • I realize that vimwiki's markdown syntax doesn't highlight it, and it's not affected by `markdownBlockquote' settings. I rephrased the question. Commented Oct 18, 2020 at 15:54
  • 1
    @Ludenticus dracula =/= darcula, but I'll delete my comment since it's markdown specific Commented Oct 18, 2020 at 18:21

1 Answer 1

2

You can modify the behavior of syntax files. Create a file at .vim/syntax/after/markdown.vim with the contents:

"highlight the entire block quote syn match Statement "^> .*" 

Note 'Statement' can be any highlight group. You can see a list of highlight groups with :so $VIMRUNTIME/syntax/hitest.vim)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.