As shown in the picture, I enabled vim's syntax highlighting and used a custom color theme. When the cursor is on { }, how do I change its background color?
高洛峰2017-05-16 16:43:28
This is a function provided by a standard plugin, you can use :help matchpara
to read its documentation. Here is an excerpt:
设置 "loaded_matchparen" 变量可以避免载入此插件: >
:let loaded_matchparen = 1
此插件安装 CursorMoved、CursorMovedI 和 WinEnter 自动命令来重新定义匹配高亮。
*:NoMatchParen* *:DoMatchParen*
要在载入此插件后关闭它,用: >
:NoMatchParen
要再次打开: >
:DoMatchParen
使用的高亮是 MatchParen。":highlight" 命令可用来为它指定不同的颜色。例如: >
>
:hi MatchParen ctermbg=blue guibg=lightblue