How to stop vim turning the color of unmathed brackets to red

1,048 views
Skip to first unread message

momodi

unread,
Aug 10, 2008, 6:34:06 AM8/10/08
to vim_use, whu...@qq.com
Hi vimmer
now I have another problem.

look at this code:
/////

for ( {

}

/////

There is only a ' ( ' , missing ' ) ' .

But the color of brackets "{}" will turned to red.

Can I set something to let it not to be red?

Charles E. Campbell, Jr.

unread,
Aug 10, 2008, 12:11:34 PM8/10/08
to vim...@googlegroups.com
Is this C++?

Solutions:

1) syntax off
2) use
for ( ) {
}
(ie. {}s aren't supposed to be inside open parentheses)
3) Presumably you're getting Error syntax highlighting. Link it to
something else:
hi link Error Ignore

(Ignore is probably one you _won't_ want to use, btw)

Regards,
Chip Campbell

Ben Schmidt

unread,
Aug 11, 2008, 8:12:50 AM8/11/08
to vim...@googlegroups.com

let c_no_curly_error=1

:help c.vim

Ben.


momodi

unread,
Aug 11, 2008, 11:03:31 AM8/11/08
to vim_use
thank you very much
> Ben.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages