4

Looks like the issue is caused by vim-jsx.

Given:

  componentDidMount: function() { ▐$.ajax({ });

I press enter to move $.ajax onto a new line and the top line folds as well:

componentDidMount: function() { 
$.ajax({ });

This is really annoying as I have to correct indentation in both lines now.

Also then I do == it collapses all indentation as well.

Is there anything I am missing?

2
  • This looks like a bug.
    – lcd047
    May 12, 2015 at 7:00
  • Your code doesn't seem like valid JSX? May 28, 2015 at 15:45

1 Answer 1

2

According to mxw/vim-jsx#63 there may have been a bug in pangloss' vim-javascript that triggered this issue. It doesn't reproduce on the current (circa 2016 Feb 8) master branches for vim-jsx and its required dependency vim-javascript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.