vim: fix indenting enums and macros

Now vim indenting goes from:

fn main() {
    enum t {
a: int,
   b: int
    }
#error("hello world");
}

to:

fn main() {
    enum t {
        a: int,
        b: int
    }
    #error("hello world");
}
This commit is contained in:
Erick Tryzelaar 2012-02-17 08:19:01 -08:00
parent 6b280c61ce
commit 4a3d551b85
1 changed files with 2 additions and 1 deletions

View File

@ -5,5 +5,6 @@ if exists("b:did_indent")
endif
let b:did_indent = 1
setlocal cindent
setlocal cinkeys-=0#
setlocal cino=j1,J1