Bram Moolenaar wrote:
> Hari Kumar wrote:
>
> > Vim uses cindent for JS files which works in general nicely. There are
> > a few cases where this does not work correctly. F.e.
> >
> > var a = {
> > b: 1,
> > c: "hello"
> > }
> >
> > cindent would align b: 1 to col 0 and indent c: "hello" by
Hari Kumar G wrote:
> Vim uses cindent for JS files which works in general nicely.
> There are a few cases where this does not work correctly. F.e.
>
> var a = {
> b: 1,
> c: "hello"
> }
>
> cindent would align b: 1 to col 0 and indent c: "hello" by
> shiftwidth. This is because of how it t
Hari Kumar wrote:
> Vim uses cindent for JS files which works in general nicely. There are
> a few cases where this does not work correctly. F.e.
>
> var a = {
> b: 1,
> c: "hello"
> }
>
> cindent would align b: 1 to col 0 and indent c: "hello" by shiftwidth.
> This is because of how it