vim-markdown
vim-markdown copied to clipboard
Add highlighting for trailing whitespace
Double spaces are used in markdown to trigger a hard linebreak
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.
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.
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:

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.
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.