Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove the highlight for the current parenthesis but keep it for the matching pair

When I work in a fast paced with vim, one of the recurring annoyance is highlighting of {} or {} or []. When the parenthesis or brackets are adjacent to each other, it takes me a second (yes a whole second!) to figure out where the focus is. I do not like having to rely on the blinking and I still want the matching paren/bracket to be highlighted. So how can I remove just the highlighting for the current paren/bracket?

like image 582
Forethinker Avatar asked Dec 02 '25 11:12

Forethinker


2 Answers

What you are looking is

set noshowmatch

to be set in vimrc

like image 183
dlmeetei Avatar answered Dec 05 '25 07:12

dlmeetei


:hi MatchParen ctermbg=black guibg=black

show match is ok, but the highlight was driving me nutz. The above turns the highight black so you don't see it when editor has a black background

like image 35
FU Jacks Avatar answered Dec 05 '25 07:12

FU Jacks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!