0

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

emtin4
  • 103
  • 2

2 Answers2

0

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.

garyjohn
  • 34,610
  • 8
  • 97
  • 89
  • 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](http://superuser.com/questions/204743/terminal-that-supports-ansi-italic-escape-code), [rxvt-unicode](http://software.schmorp.de/pkg/rxvt-unicode.html) 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 01 '14 at 22:31
0

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