set comments and commentstring
These variables are documented e.g. here.
For comparison other language plugins also set these two variables vim-go or vim-toml.
I used these variables through the tcomment plugin. e.g. gcc toggles whether the current line is commented in or out.
Thanks for the suggestion! But you have only added #, Hjson supports // and /* */ too. They are supported in the default value for comments, along with # followed by a space. So in the current state I assume your PR removes the requirement for a space after #, but drops support for // and /* */?
thanks for spotting. i just added the // and /* */ comments from filetype='cpp' but seems i haven't set them correctly … debugging …