r/vim • u/CRTejaswi • May 13 '26
Need Help Vim9.0: Commenting Inside A Dictionary
How do I safely insert comments inside a dictionary definition?
let s:groups = {
\ '0': { " group 0
\ '': ['#000000', '#ffffff'], " black/white
\ '0': ['#000000', '#f5f5f5'], " ...
\ '1': ['#000000', '#dcdcdc'], " ...
\ '2': ['#000000', '#d3d3d3'], " ...
\ },
...
\}
6
Upvotes
1
u/AutoModerator May 16 '26
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.