I am using Vim with Pathogen, vim-jsx, and vim-javascript.
I have trouble getting the correct indentation. When I am breaking one line that is too long into several pieces (without adding new blocks), the next line loses its correct indentation (and the next one after that, etc). This is really annoying and blocks me from using gg=G
.
Let me illustrate:
In the gif, I am breaking the conversationPage
line, and then reindenting the next two lines with ==
.
I have no such problems with my other vim-js-indent
plugin, thoguh, but it doesn't support JSX. Any help would be greatly appreciated.