Skip to content

Instantly share code, notes, and snippets.

@hew
Last active June 10, 2022 19:13
Show Gist options
  • Star 35 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save hew/4356975264a2ac3334272e71c6938535 to your computer and use it in GitHub Desktop.
Save hew/4356975264a2ac3334272e71c6938535 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)
  1. Run the install (below) with tic
let &t_ZH="\e[3m"
let &t_ZR="\e[23m"

xterm-256color-italic|xterm with 256 colors and italic,
	sitm=\E[3m, ritm=\E[23m,
	use=xterm-256color,
#
# Install:
#
#   tic xterm-256color-italic.terminfo
#
# Usage:
#
#   export TERM=xterm-256color-italic
#

Third

Change your iTerm terminal type to match the variable created above

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.)

    colorscheme OceanicNext
    hi htmlArg gui=italic
    hi Comment gui=italic
    hi Type    gui=italic
    hi htmlArg cterm=italic
    hi Comment cterm=italic
    hi Type    cterm=italic

Operator Mono w/ Italics on OSX Vim

@eshack94
Copy link

Does this still work in December 2019 on Mac OS X Catalina?

@hew
Copy link
Author

hew commented Dec 31, 2019

@eshack94 It should. Let me know if it doesn't work. I'll try and help.

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