开发者

Setting the vim color theme for highlighted braces

开发者 https://www.devze.com 2022-12-27 22:04 出处:网络
How do you change the vim color scheme for highlighted braces? I\'m looking to actually edit the .vim the开发者_Go百科me file to make the change permanent.

How do you change the vim color scheme for highlighted braces? I'm looking to actually edit the .vim the开发者_Go百科me file to make the change permanent.

Regards, Craig


The automatic highlight colour for matching brackets is called MatchParen. You can change the colour in your .vimrc by doing eg:

highlight MatchParen cterm=bold ctermfg=cyan


After reading the FAQ, I can answer my own question. :)

24.9. Is there a built-in function to syntax-highlight the corresponding matching bracket?

No. Vim doesn't support syntax-highlighting matching brackets. You can try using the plugin developed by Charles Campbell:

http://vim.sourceforge.net/tips/tip.php?tip_id=177

You can jump to a matching bracket using the '%' key. You can set the 'showmatch' option to temporarily jump to a matching bracket when in insert mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号