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.

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics.

Vim allows setting an ANSI escape code for italics (\e[3m), but this does not work in Gnome Terminal. Is there a terminal emulator that supports the ANSI escape code for italics?

share|improve this question
Are you certain that this is an official ANSI escape code? –  Thorbjørn Ravn Andersen Oct 29 '10 at 11:36
No, I'm not :) Some sources mention it as a valid code though, e.g. en.wikipedia.org/wiki/ANSI_escape_code –  Ton van den Heuvel Oct 29 '10 at 11:43
That Wikipedia page shows \e[3m (3 rather than 2) which agrees with tput -T rxvt-unicode sitm|hexdump -C. –  Dennis Williamson Oct 29 '10 at 18:55
Indeed, thanks, I've edited the question. –  Ton van den Heuvel Oct 30 '10 at 12:30

3 Answers 3

up vote 2 down vote accepted

I've tested a number of terminal emulators with echo -e "\e[3mfoo\e[23m" as suggested here. I went through the Arch wiki list, testing emulators in the official repositories.

Support italics

  • konsole 15.04.3
  • rxvt-unicode 9.21
  • tilda 1.2.4
  • xterm 318
  • gnome-terminal 3.16.2
  • pantheon-terminal
  • yakuake 2.9.9
  • roxterm 3.1.3
  • sakura 3.3.0
  • termite 10

Do not support italics

  • terminator (bzr) 1611
  • guake 0.7.2
  • lxterminal 0.2.0
  • rxvt 2.7.10
  • terminology 0.8.0
  • lilyterm
  • mate-terminal 1.10.1
  • xfce4-terminal 0.6.3
  • KiTTY
  • PuTTY 0.65 Beta
share|improve this answer

GNOME Terminal (3.6.1) supports italics via \e[3m.

share|improve this answer


share|improve this answer

Your Answer


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.