Change VIM highlight bracket match color

Source: Internet
Author: User

Vim brace matching is highlighted in the vim7.4 version, which is turned on by default. But the default parentheses match
The highlight color is light blue, in the light of the blind at the same time, seriously affect our writing code, the most obvious feeling
That is, the consecutive opening of a pair of parentheses, then do not look closely, you can not find the cursor at all?

So, how to change? In the ~/.vimrc configuration file, add the following line

hi MatchParen ctermbg=DarkRed guibg=lightblue

Which DarkRed is the color we need to change, I changed it to dark red, the color behind it.
Temporarily do not know what warm use, do not care about it. What I really want is not to change the back of the parentheses after the selected
Change the color of the parentheses itself, but it seems that vim is not possible for the time being. Below is
After the change.

Choose the color you want to see here

Http://www.runoob.com/try/color.php?color=Black

Some color names, VIM does not support, this time to change one on the line

VIM official brackets Match help document

http://vimdoc.sourceforge.net/htmldoc/pi_paren.html#:D Omatchparen

Giveaway: I simple VIM configuration

set mouse=a        " 开启鼠标支持set autoindent     " 自动缩进set tabstop=4      " 设置所有的tab和缩进, 为4个空格set softtabstop=4set shiftwidth=4set expandtab      " 使用空格来替换tabcolorscheme deserthi MatchParen ctermbg=DarkRed guibg=lightblue

Change VIM highlight bracket match color

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.