Skip to content

Instantly share code, notes, and snippets.

@matthewlehner
Last active February 1, 2019 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewlehner/961812dde65d6c88c923f46637cdcb61 to your computer and use it in GitHub Desktop.
Save matthewlehner/961812dde65d6c88c923f46637cdcb61 to your computer and use it in GitHub Desktop.
Get italics and full colour support in vim in tux. tmuxcolours.sh installs the other two files with arcane neckbeard magic.
set -g default-terminal "tmux-256color"
# A screen-256color based TERMINFO that adds the escape sequences for italic.
# run to add to term db: tic tmux.terminfo
tmux|tmux terminal multiplexer,
ritm=\E[23m, rmso=\E[27m,
sitm=\E[3m, smso=\E[7m,
use=screen,
tmux-256color|tmux with 256 colors,
ritm=\E[23m, rmso=\E[27m,
sitm=\E[3m, smso=\E[7m,
use=screen-256color,
#!/bin/sh
# Adds screen-256 based TERMINFO with italic support.
tic -x xterm-256color.terminfo
tic -x tmux.terminfo
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
xterm-256color|xterm with 256 colors and italic,
ritm=\E[23m, sitm=\E[3m,
use=xterm-256color,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment