Describe the bug
Normally, a multi-line comment in C will show a new "*" at the correct indentation every time a carriage return is entered. However, that is not the case with the attached example file. Instead, extra (unwanted) spaces are prepended prior to the asterisk. Removing a line or two from the example file often shows no initial spacing.
(hopefully I've successfully attached cindent-prblm.c and bad.vimrc, because although nominally attached I don't see a confirmation list)
To Reproduce
Detailed steps to reproduce the behavior:
Expected behavior
It should start with " * " (or some number of spaces following the asterisk).
You can see what it should start with by
Environment (please complete the following information):
vim --version.)—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Looks like "Attach files by ...selecting..." them did not work. Please see the vimdev mailing list for the two files.
Your 'cinoptions' ends in "*30", which means Vim will look back only 30 lines for the start of a comment.
But the comment is 32 lines long. Either remove that restriction, or use a larger number. "*50" works fine.
Closed #8118.