sponsor Vim development Vim logo Vim Book Ad

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

 script karma  Rating 250/248, Downloaded by 2002

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.
 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
complete.vim 0.2 2002-02-25 6.0 Michael Geddes Add <buffer> to maps
complete.vim 0.1 2002-02-25 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 the maillist. Help Bram help Uganda.
   
SourceForge.net Logo