blindFS / vim-taskwarrior

vim interface for taskwarrior
Other
517 stars 42 forks source link

Row highlighting in terminal vim makes some fields unreadable. #124

Closed tecfu closed 8 years ago

tecfu commented 8 years ago

I'm using terminal vim with 256 colors enabled on Xubuntu 14.04. Row highlighting doesn't seem to work for me. Highlighted rows are dark grey and completely obscure black text.

I looked through previous issues and found that I can set some configuration options for taskwarrior in my .vimrc, but none of those options appear to address this issue.

I also find a 2013 discussion https://github.com/blindFS/vim-taskwarrior/issues/27 where g:task_field_highlight_advanced is discussed - but I don't see that option listed in the docs nor did it turn up when I searched the source.

You can see in the images attached below that the description field is completely hidden when the row is highlighted.

1 - How can I fix this? 2 - Where is the row highlight color set in the source?

Examples:

ex 1. Row 2 is highlighted. vim-tw-ex1

ex 2. Row 3 is highlighted. vim-tw-ex2

tecfu commented 8 years ago

And the answer is to change the CursorLine highlight group.

In my case I changed:

coloscheme.vim

hi CursorLine   guifg=NONE      guibg=#1c1c1c   gui=NONE      ctermfg=NONE      ctermbg=234       cterm=NONE

to

    hi CursorLine   guifg=NONE      guibg=#1c1c1c   gui=NONE      ctermfg=NONE      ctermbg=160       cterm=NONE

which turned the selected row red.