[PATCHv3] Vimrc config with GNU formatting

Yury Gribov y.gribov@samsung.com
Tue Sep 16 16:38:00 GMT 2014


Hi all,

This is the third version of the patch. A list of changes since last 
version:
* move config to contrib so that it's _not_ enabled by default (current 
score is 2/1 in favor of no Vim config by default)
* update Makefile.in to make .local.vimrc if developer asks for it
* disable autoformatting for flex files
* fix filtering of non-GNU sources (libsanitizer)
* added some small fixes in cinoptions based on feedback from community

As noted by Richard, the config does not do a good job of formatting 
unbound {} blocks e.g.
void
foo ()
{
   int x;
     {
       // I'm an example of bad bad formatting
     }
}
but it seems to be the best we can get with Vim's cindent
(and I don't think anyone seriously considers writing a custom indentexpr).

Ok to commit?

-Y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-vimrc-3.diff
Type: text/x-diff
Size: 3159 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140916/33328056/attachment.bin>


More information about the Gcc-patches mailing list