Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which setting makes Vim flash the matching bracket/brace?

Tags:

vim

The Scala plugins for Vim is flashing the matching bracket/brace for a few seconds, and then it stops the highlight. Is there a special setting I can enable in my Vim to achieve the same for all files, not only Scala ones?

like image 825
Geo Avatar asked Jun 21 '11 14:06

Geo


People also ask

How do you match braces in Vim?

You can easily use the % key to jump to a matching opening or closing parenthesis, bracket or curly brace. You can also set the option showmatch . The cursor will briefly jump to the matching bracket, wen you insert one.

How do you know if braces match on VI?

You simply put your cursor on a brace or parenthesis, press %, and Vi will move the cursor to the corresponding brace or parenthesis.


1 Answers

You're looking for the showmatch option.

Related settings are:

  • showmatch
  • matchpairs
  • matchtime
like image 181
Randy Morris Avatar answered Dec 07 '22 21:12

Randy Morris