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?
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?
Because I'm using the Solarized colorscheme, I had to edit .vim/colors/solarized.vim as recommended in Solarized #120 to replace lines 137-157 with the following:
if has("gui_running") || ( has("unix") && system("tput sitm") == "\033[3m" )
let s:terminal_italic=1
else
let s:terminal_italic=0
endif
That was in addition following the instructions in this Gist and adding these two lines to my .vimrc, using Ctrl-vEsc to enter ^[:
set t_ZH=^[[3m
set t_ZR=^[[23m
(Thanks to Gabriele Lana for the tip to add those lines to my .vimrc.)