On Sat, Feb 17, 2007 at 09:57:57PM -0200, g b wrote: > Any way to indent json correctly on vim? > > I recall that on 6.4 version we needed an external syntax file for > javascript. Is it still the case? > > it's driving me nuts to have weird tabulation put allover the place... > > thanks > > ps: json sample > Obj = { > att1: 'val1', > att2: 'val2', > }
I don't know. But it shouldn't be that hard to use folding on { } and set indentexpr to a function returning folding level... This might get close to what you want Marc