vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Code block: Set background color beyond end of line

Open MaxGyver83 opened this issue 2 years ago • 0 comments

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

MaxGyver83 avatar May 12 '23 13:05 MaxGyver83