How to add italics in gVim?


Wrahim

I'm fairly new to Vim and mostly use gVim for most coding purposes. I'm trying to figure out what to add to my _vimrc (in Windows) to italicize my comments.

I try to add

highlight Comment cterm=italic

But it didn't work. My modifications to vimrc so far are:

color slate
set number
set nowrap
set guioptions+=b
if has('gui_running')
  set guifont=Consolas:h10
endif

So, what can I do to make my comments appear in italics (consolas, italics, size 10)?

Ingo Karkat

This ctermdefinition applies only to color terminals. For GUI you need to use gui=parameters:

highlight Comment cterm=italic gui=italic

Also, put it after your command , otherwise it might be overwritten.:colorscheme~/.vimrc

Related


How to add complex labels with italics and variables in ggplot?

Moloch I've been reading a lot of posts on this topic using expression(), paste()and bquote(), or some combination. I think I'm close to solving my problem, but I just can't get to my destination. The following script produces a plot labeled "y=1+2(x);r^2=0.9"

How to add complex labels with italics and variables in ggplot?

Moloch I've been reading a lot of posts on this topic using expression(), paste()and bquote(), or some combination. I think I'm close to solving my problem, but I just can't get to my destination. The following script produces a plot labeled "y=1+2(x);r^2=0.9"

How to create a dendrogram with italics

Marcus So I am trying to create a dendrogram of 42 different genes based on the distance matrix. The graph was created with: d6 = dist(t(cildata)) hc6 = hclust(d6) Plot (hc6) Then I just save the plot as a jpeg. However, I need to save a version of the plot wi

How to create a dendrogram with italics

Marcus So I am trying to create a dendrogram of 42 different genes based on the distance matrix. The graph was created with: d6 = dist(t(cildata)) hc6 = hclust(d6) Plot (hc6) Then I just save the plot as a jpeg. However, I need to save a version of the plot wi

VBA Excel change italics and add </ and />

Darius I'm wondering if anyone has come across something like this. I have a list in an Excel column that has italics inserted in the text of the list. It's just like: First row: reduced distribution of Calidris pugnax Second row: Spodoptera litura is no longe

How to combine bold and italics in CSS?

Sophia_ES: This W3Schools tutorial taught me how to use CSS font-styleproperties to make text bold (equivalent to <b&g>this</b>old-school HTML) and how to make text italic (equivalent to <i>this</i>old-school HTML). However, I can't seem to find anywhere how t

How to combine bold and italics in CSS?

Sophia_ES: This W3Schools tutorial taught me how to use CSS font-styleproperties to make text bold (equivalent to <b&g>this</b>old-school HTML) and how to make text italic (equivalent to <i>this</i>old-school HTML). However, I can't seem to find anywhere how t

How to print text in italics in Python?

Mike Delmonaco I'm writing a program that should receive an entry in a specific modified form of APA and return an APA reference. I've realized that I only need to print certain parts of the text in italics. Right now, my program just executes an input, asks y

How to combine bold and italics in CSS?

Sophia_ES This W3Schools tutorial taught me how to use CSS font-styleproperties to make text bold (equivalent <b&g>this</b>to old-school HTML) and how to make text italic (equivalent <i>this</i>to old-school HTML). However, I can't seem to find anywhere how to

How to combine bold and italics in CSS?

Sophia_ES: This W3Schools tutorial taught me how to use CSS font-styleproperties to make text bold (equivalent to <b&g>this</b>old-school HTML) and how to make text italic (equivalent to <i>this</i>old-school HTML). However, I can't seem to find anywhere how t

How to print text in italics in Python?

Mike Delmonaco I'm writing a program that should receive an entry in a specific modified form of APA and return an APA reference. I've realized that I only need to print certain parts of the text in italics. Right now, my program just executes an input, asks y

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).

search for brackets and add \ in gvim

squat I am new to Vim. Please help to search and add \to the string. For example, for [1][sometest & numbers][7], the output should be [1]\[sometest & numbers\][7]. I can change the open bracket, [with this :%s/\[[a-z]\&\[/\\\[/g But can't do it ](brackets).