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?

  • This looks like a bug. – lcd047 May 12 '15 at 7:00
  • Your code doesn't seem like valid JSX? – Martin Tournoij May 28 '15 at 15:45
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, privacy policy and cookie policy

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