Skip to content

Instantly share code, notes, and snippets.

@denisinla
Forked from hew/_readme.md
Last active September 13, 2019 05:36
Show Gist options
  • Save denisinla/47a3cb9da814d01adbccb2af1064ca57 to your computer and use it in GitHub Desktop.
Save denisinla/47a3cb9da814d01adbccb2af1064ca57 to your computer and use it in GitHub Desktop.
Operator Mono w/ Italics on OSX VIm

You Want This - but on Vim

Read on to find out to how to get it.

First

Get Operator Mono

Second

  1. Create a file named xterm-256color-italic.terminfo in your home directory (or wherever)
  xterm-256color-italic|xterm with 256 colors and italic,
  sitm=\E[3m, ritm=\E[23m,
  use=xterm-256color,
  1. Run tic on filename and export TERM for usage.
tic xterm-256color-italic.terminfo
export TERM=xterm-256color-italic

Third

Change your iTerm terminal type to match the variable created above (If it doesn't show up, type it out).

Fourth

Open up your init.vim/.vimrc and add the following

(Note that you don't need to use OceanicNext, but I recommend that color scheme.)

    
    hi htmlArg cterm=italic
    hi Comment cterm=italic
    hi Type cterm=italic
    hi htmlArg gui=italic
    hi Comment gui=italic
    hi Type gui=italic
  • If using neovim make sure to use the hi Comment gui=italic as well. ** Make sure to add highlights after the colorscheme is set.

Operator Mono w/ Italics on OSX Vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment