I am trying to add bold comments to my vim files. What i mean, is to be able to get something like this:
I saw other articles like this that allow to toggle bold comment.
The proposed solutions from those articles act as follows: when i toggle the function, ALL comments we be bold, or ALL comments we be normal. So that looks like:
However, i am trying to only make certain parts of comment bold, like in the first image.
How to i do this?
Edit: Thanks to the help of @klaus, a possible solution is to do:
sy match myBoldComment '-\+\s\+[^-]*\s\+-\+' | hi myBoldComment cterm=bold gui=bold
Obviously, the pattern is up to you :)