tpope / vim-markdown

Vim Markdown runtime files
1.22k stars 191 forks source link

Code block: Set background color beyond end of line #205

Open MaxGyver83 opened 1 year ago

MaxGyver83 commented 1 year ago

When I don't activate syntax highlighting, I can set a background color for code blocks like this:

:highlight markdownCodeBlock ctermbg=240

But this sets the background color only until the end of every line and skips empty lines. Example:

image

Can I somehow achieve that the background color is set from the left to the right window border giving me a rectangle of the defined background color? (Isn't this what you understand by a "block"?) Maybe by setting NonText for this region as well!?

Like this (here faked by appending the right number of spaces at the end of each line): image