How to change the background color of the cursor when using vim to view php code?
高洛峰
高洛峰 2017-05-16 16:41:28
0
2
592

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?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
小葫芦

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
某草草

:hi Cursor guibg=yellow

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!