Re: indenting and json

2007-02-19 Thread g b
On 2/19/07, Marc Weber [EMAIL PROTECTED] wrote: On Sat, Feb 17, 2007 at 09:57:57PM -0200, g b wrote: Any way to indent json correctly on vim? 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

indenting and json

2007-02-17 Thread g b
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', } -- Gabriel