Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatchParen highlighting makes it look like cursor jumped to matching parenthesis #74

Open
jxu opened this issue Sep 7, 2018 · 2 comments

Comments

@jxu
Copy link

jxu commented Sep 7, 2018

Essentially lifepillar/vim-solarized8#11

So use

hi MatchParen      ctermfg=208  ctermbg=233 cterm=bold
" Original: 
"hi MatchParen      ctermfg=233  ctermbg=208 cterm=bold
crvcrv added a commit to crvcrv/molokai that referenced this issue Nov 6, 2018
@LenaicTerrier
Copy link

Shouldn't the fix also alter line 63 ?
From

hi MatchParen      guifg=#000000 guibg=#FD971F gui=bold

to

hi MatchParen      guifg=#FD971F guibg=#000000 gui=bold

@bjeanes
Copy link

bjeanes commented Sep 8, 2019

I struggled with this one for a while. I think this is specifically a poor interaction with Cursor styles that have guibg=fg guifg=bg and/or ctermbg=fg ctermfg=bg.

What seems to happen is that MatchParens styles which give the character a background color have the bg and fg inverted by the Cursor, making it seem like the cursor isn't there.

Changing either MatchParen to not set a background or Cursor to not flip background and foreground seems to fix it.

bjeanes added a commit to bjeanes/dotfiles that referenced this issue Sep 8, 2019
piersy added a commit to piersy/nvim that referenced this issue May 21, 2020
Due to this issue tomasr/molokai#74
parenthesis highlighting makes it look like the far parenthesis is
highlighted, I switched it back in my fork.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants