Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Image URL

After executing :MakeTestPage in vim

As you can see in the image ...

underline(u),bold(b),bold-underline(bu) displays correctly

but what is happening to italic(i) ? It shows white background ...

Can anybody tell my why italic format shows white background rather than italic font?

I am using xterm as terminal emulator

my $term value is xterm-256color

share|improve this question
up vote 0 down vote accepted

xterm does not support an italic character attribute. You can change the appearance of a character by making it bold, underlined, reverse or colored, but not by changing its font to italic. The plugin is probably using reverse in place of italic.

share|improve this answer
thanks, it means xterm is a problem. So can you tell, the names of terminal that support italic char or is there any way italic char can be supported in xterm. – emtin4 Jan 11 '12 at 17:34
According to the answer to this question, rxvt-unicode does. You could also use gvim instead of terminal vim. – garyjohn Jan 11 '12 at 18:25
Note: xterm supports italic just fine for xft rendered TrueType fonts. – Jens Dec 1 '14 at 22:31

Support for italic varies across terminals. Xterm doesn't support it, but (e.g.) rxvt-unicode terminal does. The Txtfmt plugin always specifies "italic" in the Vim syntax definition, but a terminal that doesn't support italic may use reverse or something similar... Here's a thread that touches on this...

share|improve this answer
thanks for answer.. now that clears the issue.. – emtin4 Jan 16 '12 at 21:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .