sponsor Vim development Vim logo Vim Book Ad

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

 script karma  Rating 328/326, Downloaded by 3593  Comments, bugs, improvements  Vim wiki

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 2002-02-25 6.0 Michael Geddes Add <buffer> to maps
complete.vim 0.1 2002-02-25 6.0 Michael Geddes Initial upload
ip used for rating: 3.17.154.171

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.
   
Vim at Github