whatyouhide / vim-gotham

Code never sleeps in Gotham City. 🌃
MIT License
1.25k stars 80 forks source link

Strange cursor color over brackets. #44

Closed dimas-cyriaco closed 7 years ago

dimas-cyriaco commented 7 years ago

That's a weird behavior. I hope i can explain it clearly.

When the cursor goes over a bracket character the character becomes orange with dark background, and the matching character becomes dark with orange background. It make it looks like the cursor have jumped to the matching character. It's very disorienting.

Maybe some screenshots will help.

gothan-cursor-before gothan-cursor-over gothan-cursor-after

whatyouhide commented 7 years ago

Hey @dimascyriaco, thanks for the report.

I am not using vim currently and I don't have time to look deeply into this. Would you mind investigating what combination of colors is causing this? I suspect it has to do with the block cursor inverting the colors or something like that.

fcobos commented 7 years ago

Seems to be this

" Matching parenthesis.
call s:Col('MatchParen', 'base1', 'orange')

base1 is almost the same color as the background. If changed from base1 to something else like base7, the cursor is visible again.

whatyouhide commented 7 years ago

Great @fcobos, could you send a PR with the fix and screenshots of how the fix looks like? That would be awesome :D