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

Add highlighting for trailing whitespace

Open FST777 opened this issue 12 years ago • 4 comments

Double spaces are used in markdown to trigger a hard linebreak

FST777 avatar Oct 15 '13 12:10 FST777

This is a reasonable goal, but I don't think hard coding a color is a good practice, and I'm not sure what to link it to.

tpope avatar Jul 11 '14 17:07 tpope

Neither was I, tbh...

I currently don't use markdown anymore, so I uninstalled this plugin. Let me know if you want me to take another look.

Groet,

Fi-Ji On 11 Jul 2014 19:46, "Tim Pope" [email protected] wrote:

This is a reasonable goal, but I don't think hard coding a color is a good practice, and I'm not sure what to link it to.

— Reply to this email directly or view it on GitHub https://github.com/tpope/vim-markdown/pull/52#issuecomment-48761159.

FST777 avatar Jul 11 '14 18:07 FST777

It's a good thing to highlight trailing whitespace, perhaps you can link it to an 'error' color? You know, that red color when typing invalid HTML syntax, something like this one:

vim

Not sure if using such 'error' color is a good thing, but I can imagine that you don't want hard linebreaks at all sometimes, so I consider it's good enough to use an 'error' highlight.

STOWouters avatar Jul 11 '14 20:07 STOWouters

I agree with @Stijn-Flipper that linking this to the error style being the best way forward. Since the OP has removed their fork I've taken the liberty of rebasing this and making that adjustment in #97. This PR is now obsolete.

alerque avatar Mar 08 '16 07:03 alerque