On 2022-05-21, Terry Greeniaus wrote:
> Seriously, practically nobody ever wants this behaviour. It's just
> not how anybody ever comments code. Changing the default behaviour
> in favor of the 3 people that do this vs. the 15 million people
> that don't is... questionable.
Really? Both the Linux kernel and Vim use multi-line end-of-line
comments. Other than those examples, I have no idea how many people
besides me use them and you don't, either.
> I think we will have to go and muck around with .vim/after/* files
> to get the default behaviour back because the c.vim ftplugin won't
> have the required "/" flag and it runs after our .vimrc, right?
There's no need to set this in a filetype plugin. Just put
set formatoptions+=/
in your vimrc. $VIMRUNTIME/c.vim sets 'formatoptions' using -= and
+= so that it doesn't affect other flags added to 'formatoptions'
previously.
> How about instead of adding a disable option for this new feature
> we make it an enable option instead? Or maybe the default c.vim
> file can be updated to include the "/" flag by default so that the
> behaviour doesn't change for literally everybody in the whole
> world? The commit that resolved this for patch 8.2.4907 isn't
> linked in this issue so it's hard to see what exactly was done to
> implement it - if the default c.vim file was updated then my bad!
It was implemented in the Vim source by patch 8.2.3787.
FWIW, at the time it was considered not a new feature but a fix to
a bug in the old behavior. I think that's why it was decided that
the new '/' flag should restore the old behavior rather than enable
the new behavior.
Regards,
Gary
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220522091053.GD2386%40phoenix.