I use Vim 7.4.2149 and the plugin pangloss/vim-javascript for js indentation. I need to get comments like:
/*
*
*/
But instead I get:
/*
*
*
*/
I'm not really interested in syntax so I use:
syntax off
and I tried these settings:
formatoptions=croql
comments=s1:/*,mb:*,ex:*/
What should I do to get the comment formatting I'm looking for.
:set autoindent
, and^T
and^D
works well for most languages. Or:set softtabstop=4 backspace+=indent
if you don't like^T
and^D
.:set foldmethod=marker foldmarker={,}
works well enough for folding (template literals aren't really a big deal). If you don't want syntax, job done.vim-javascript
has so far had 149 issues relating to indentation. 150 if you count this one. I'll stick with'autoindent'
.vim-javascript
. You can also make sure this problem isn't caused by something in your vimrc. If that doesn't fix the problem I suggest you open an issue on their bug tracker, as this is obviously a bug.