vim-atomic icon indicating copy to clipboard operation
vim-atomic copied to clipboard

Highlight the matching parenthesis when cursor is on it

Open maxchou0205 opened this issue 1 year ago • 5 comments

maxchou0205 avatar Apr 25 '24 11:04 maxchou0205

"hello, is it possible to highlight the matching parenthesis when cursor is on it?(just like the default vim colorscheme did), thanks a lot..."

Yes, it already does. The parenthesis is highlighted in bold when the cursor is on the other one. Check the support for bold text in your terminal.

gerardbm avatar Apr 25 '24 11:04 gerardbm

thanks a lot, i tried to add the following in .vimrc 'hi MatchParen guifg=#000000 guibg=#FD971F gui=NONE ctermfg=000 ctermbg=208 cterm=NONE' it works just fine. i am very sorry that i did not search through the documentation before the issue is raised. i am very sorry for your time to reply this issue... your work is really really remarkable. appreciated.

maxchou0205 avatar Apr 25 '24 12:04 maxchou0205

You are welcome.

I just tested your code and it looks nice, as well. It's a good solution for these cases without bold support. I'm wondering if I should adapt it to a background color, because its easier to see.

gerardbm avatar Apr 25 '24 12:04 gerardbm

I liked your idea, @maxchou0205, so I implemented it. It's faster and easier to see the matching parenthesis, now. Nice one!

gerardbm avatar Apr 25 '24 19:04 gerardbm

I've made it optional.

By default, Atomic will use an orange color to highlight the background for MatchParen. To use the orange color for the foreground instead, use the following option before the color scheme definition:

let g:atomic_matchparen = 0

PS. I didn't get used to it for a month using it. So making it optional is a win-win.

gerardbm avatar May 25 '24 12:05 gerardbm