Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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...

http://www.mail-archive.com/vim_use@googlegroups.com/msg06341.html

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.