molokai icon indicating copy to clipboard operation
molokai copied to clipboard

MatchParen highlighting makes it look like cursor jumped to matching parenthesis

Open jxu opened this issue 5 years ago • 2 comments

Essentially https://github.com/lifepillar/vim-solarized8/issues/11

So use

hi MatchParen      ctermfg=208  ctermbg=233 cterm=bold
" Original: 
"hi MatchParen      ctermfg=233  ctermbg=208 cterm=bold

jxu avatar Sep 07 '18 19:09 jxu

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

LenaicTerrier avatar Mar 11 '19 12:03 LenaicTerrier

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 avatar Sep 08 '19 01:09 bjeanes