How do I change the ~/.vimrc to have the comments in my code italicized?
In my ~/.vimrc file I have:
highlight Comment ctermfg=blue
that makes the comments blue. What do I need to do differently to make them italic?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need a font with an italic set and a terminal capable of displaying italics. Also, if you’re using a color scheme other than the default, the above line should come after the color scheme is loaded in your
~/.vimrcso that the color scheme doesn’t override it.The
ctermmakes it work in the terminal and theguiis for graphical Vim clients.