Skip to content

Instantly share code, notes, and snippets.

@sampollard
Created August 9, 2019 06:57
Show Gist options
  • Save sampollard/cb18cbbdef922496e02c1a3856991f7d to your computer and use it in GitHub Desktop.
Save sampollard/cb18cbbdef922496e02c1a3856991f7d to your computer and use it in GitHub Desktop.
Italics in ITerm2
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
# Follow instructions at
# https://apple.stackexchange.com/questions/266333/how-to-show-italic-in-vim-in-iterm2
# Basically, check italic text in settings, then type
# tic -o ~/.terminfo xterm-256color.terminfo.txt
# and make sure to export TERM=xterm-256color in your ~/.profile
xterm-256color|xterm with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment