Is there a way to put the comment character at the very beginning of the line, before any spaces, e.g., instead of having comments inserted like this
// if (b != 0)
// if (a > b)
// cout << a << endl;
it should be like this
// if (b != 0)
// if (a > b)
// cout << a << endl;
The only things I see in the doc are NERDSpaceDelims and NERDRemoveExtraSpaces, which I've tried toggling and don't seem to help this issue.
If you would like to use vanilla
vim, Here we goSelect the block using
C-v, followed by any navigation key, in your casej. ThenI. This will take youinsertmode.Now we can use any key to insert, for your particular example,
\\. Finalize it by Esc.We should have commented block now.