]> oss.titaniummirror.com Git - smckown/dotfiles.git/commit
vim/vimrc: indenting structure initializers
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 9 Sep 2015 23:59:33 +0000 (17:59 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 10 Sep 2015 00:28:16 +0000 (18:28 -0600)
commit635558342ee61d1fd037d78340f4d4db6c399355
treeb15a0554b42d753f920f0fd275134715a979763c
parenta1e1c7fa20d6c08d866579c609f69fdedbe304ee
vim/vimrc: indenting structure initializers

Use the java cinoptions to get better behavior for initializers of
structures when using named member initialization.

Note that these options cause some C code to be indented incorrectly,
for example:

if (func1(arg, arg) ==
    value) {
  do_something();
}

becomes:

if (func1(arg, arg) ==
    value) {
      do_something();
    }
vim/vimrc