New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong indentation in C comments #3757
Comments
In the first case, the first wrongly indented line has the word Try using Best regards, |
The |
I have encountered a mildly annoying issue with comment's
wrapping/reindentation in C buffers, which can be reproduced in Vim
8.1.0650 with the comment reported at the end of this message, with `vim
--clean` and `set tw=80`. After typing `70G=G`, the last two paragraphs
are reindented as follows:
[...]
Try this:
set cino=*999
:help cino-star
…--
Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with.
-- Dave Parnas
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
That fixed it. Thanks, I didn't know about |
I have encountered a mildly annoying issue with comment's wrapping/reindentation in C buffers, which can be reproduced in Vim 8.1.0650 with the comment reported at the end of this message, with
vim --clean
andset tw=80
. After typing70G=G
, the last two paragraphs are reindented as follows:The same issue (wrong indentation) happens if I start typing after the last line before the comment ends. For instance,
85GA equivalently
results in:Here is the minimal (so to speak) reproducible example:
Sorry for the long example, but if I delete text somewhere else in the comment the issue may not be reproducible, and I haven't been able to find a pattern so far.
The text was updated successfully, but these errors were encountered: