Getting automatic matching brace in vim
Posted
by
Bob
on Stack Overflow
See other posts from Stack Overflow
or by Bob
Published on 2010-12-23T19:28:50Z
Indexed on
2010/12/23
21:54 UTC
Read the original article
Hit count: 160
vim
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.
© Stack Overflow or respective owner