Setting the vim color theme for highlighted braces

▼魔方 西西 提交于 2019-12-21 09:06:09

问题


How do you change the vim color scheme for highlighted braces? I'm looking to actually edit the .vim theme file to make the change permanent.

Regards, Craig


回答1:


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



回答2:


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.



来源:https://stackoverflow.com/questions/2709064/setting-the-vim-color-theme-for-highlighted-braces

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!