Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim indent plugins #544

Closed
pomke opened this issue Jun 7, 2016 · 2 comments

Comments

@pomke
Copy link

commented Jun 7, 2016

Since our team moved to Standard, I'm having difficulty finding a vim indentation plugin for JS that dos the correct thing, some examples of code structures that break most/all vim indenters I've tried:

single line if statements:

if(foo) return foo
  return bar

ending brackets or braces after last item:

let foo = [something, somethingElse, somethingExtra, batarang, purpleBallons,
  cats, dogs, lions, tigers, bears]
  // bad indent!

I'm jut wondering if any Standard/Vim users have found a better indent, or have workarounds for these issues.

@mcchrish

This comment has been minimized.

Copy link

commented Jun 26, 2016

https://github.com/pangloss/vim-javascript has some recent updates. Seems to do just fine in most cases.

@feross feross added the question label Jul 13, 2016

@feross

This comment has been minimized.

Copy link
Member

commented Jul 13, 2016

@pomke Have you given @mcchrish's suggestion a try?

I'm going to close this issue now, as it's been open for a month and I want to keep the issue tracker tidy 👍 Feel free to continue discussion.

@feross feross closed this Jul 13, 2016

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.