xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

TODO highlighting doesn't work with molokai colorschema #76

Closed gavruk closed 10 years ago

gavruk commented 10 years ago

Hi. I am using molokai colorschema and for some reason my TODO text is not highlighted, but DONE highlighted. Is there any way to highlight todo. For Slate highlighting works okay. Is there any way to fix this? Or I should use slate for notes? notesmolo

xolox commented 10 years ago

It is in fact highlighted :-) however vim-notes uses the WarningMsg highlighting class and Molokai has a funky style for that (bold white text on a black background, blacker than the main background color).

A bit of context: There is no general and appropriate way for vim-notes to state to Vim that it wants one item green and the other red (given the existence of color schemes) so instead I looked for highlighting classes that most resembled the effect I was interested in. Unfortunately this doesn't always apply, e.g. in the case of Molokai.

If you're only using Molokai as a color scheme you can add the following lines to your ~/.vimrc script:

highlight link notesTodo ErrorMsg
highlight link notesDoneMarker Directory

I just tested this and it looks much better, but as explained I can't generalize this.

xolox commented 10 years ago

Because I can't really "fix" this I'll go ahead and close this issue now. I hope the hint I gave can be used effectively in your case. Thanks for the feedback and happy Vimming!