patch 9.1.0464: no whitespace padding in commentstring option in ftplugins

Problem:  no whitespace padding in commentstring option in ftplugins
Solution: Change default to include whitespace padding, update
          existing filetype plugins with the new default value
          (Riley Bruins)

closes: #14843

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Riley Bruins
2024-06-03 20:40:45 +02:00
committed by Christian Brabandt
parent a218cc6cda
commit 0a0830624a
71 changed files with 305 additions and 162 deletions

View File

@ -629,7 +629,7 @@ static struct vimoption options[] =
{"commentstring", "cms", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
#ifdef FEAT_FOLDING
(char_u *)&p_cms, PV_CMS, did_set_commentstring, NULL,
{(char_u *)"/*%s*/", (char_u *)0L}
{(char_u *)"/* %s */", (char_u *)0L}
#else
(char_u *)NULL, PV_NONE, NULL, NULL,
{(char_u *)0L, (char_u *)0L}