JavaScript VIM Debug Plugin - Comma First

Is there a Javascript indentation plugin for VIM that can handle semicolon notation?


var o = {
    foo: bar
  , bar: foo
  , cde: efg


I think Sublime Text supports this.


source to share

1 answer

You can try JavaScript Indent plugin . It doesn't give me the exact same style you are using, but it certainly handles javascript indentation better than plain vim.



All Articles