Getting automatic matching brace in vim
- by Bob
I spend WAY to much time fumbling around because vim doesn't handle closing braces like most IDEs do. Here's what I want to happen:
type this:
if( whatever )
{ <CR>
where <CR> mean hit the enter key
and get this:
if( whatever )
{
|
}
where | is the position of the cursor. It's what Eclipse does. It's what Visual Studio does. And it's what I want Vim to do.
I've seen a few plugins, tried a few, and none of them seem to give me this behavior. Surely I can't be the first programmer to want this.