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 comment blue.
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 comment blue.
How do you edit .vimrc?
vi ~/.vimrc
Does that not work? By default, it's looked for in your home directory.
highlight Comment cterm=italic
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 ~/.vimrc
michaelmichael's answer should solve it for most cases. But, just in case you need this for a font in gvim that doesn't have italics (but oblique or something instead), you can try something like this in ~/.gvimrc
highlight Comment font=Bitstream_Vera_Sans_Mono_Oblique:h14
where h14 is the font size. This font should have the same cell size as your normal font though, so don't use an altogether different font.