Vim logo vim online Vim Book Ad

Brace Complete for C/C++ : Adds braces after if, else, while

 script karma  Rating 9/3, Downloaded by 507

created by
Michael Geddes
 
script type
ftplugin
 
description
This is for use with the style of C/C++ coding that says ALWAYS have braces after an if, and always start braces on a new line:

if(a ==1 )
{
}
else
{
}
it also changes
else{
to
else
{

For those whoe get lazy :)
 
install details
Add as ftplugin for cpp.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
complete.vim 0.2 25-Feb-2002 6.0 Michael Geddes Add <buffer> to maps
complete.vim 0.1 25-Feb-2002 6.0 Michael Geddes Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo