我想删除vim中突出显示的大括号

时间:2016-11-15 08:10:15

标签: macos vim

here's the image!

" Configuration file for vim

set modelines=0     
" CVE-2007-2438

" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible    
" Use Vim defaults instead of 100% vi compatibility
set backspace=2     
" more powerful backspacing

" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup nobackup

syntax on        
set ai           
set shiftwidth=4 
set tabstop=4

set ruler         
set backspace=2   
set ic          
set hlsearch     
set incsearch    
set smartindent  
set confirm      
set history=200  
set cursorline   
set number       
:nohl
:set nowrap      
set mouse=a
colo google
hi Normal ctermbg=none

以上是我的.vimrc

正如你所看到的,我的大括号在第3行和第5行突出显示,虽然我的光标不在它们上面(因此,突出显示可能不受MatchParen控制)。

然而,虽然我无法通过使用MatchParen删除其突出显示,但我认为必须有另一种方法来处理它。

如何禁用这些突出显示???

thx:)

1 个答案:

答案 0 :(得分:2)

您需要找出导致突出显示的语法组。 :syn list显示所有活动组,但在安装SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor插件时更容易。当您拥有违规语法组的名称时,您可以调查其来源; (最后一行):scriptnames可能会有所帮助。

相关问题