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^Tand^Dworks well for most languages. Or:set softtabstop=4 backspace+=indentif you don't like^Tand^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. – Antony Aug 05 '16 at 09:26vim-javascripthas so far had 149 issues relating to indentation. 150 if you count this one. I'll stick with'autoindent'. – Antony Aug 05 '16 at 10:39vim-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. – Martin Tournoij Aug 08 '16 at 02:13