• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Draft / Vim, tmux, iTerm broken colors

Vim, tmux, iTerm broken colors

Last updated on December 17, 2018 by Sal Ferrarello

I do most of my work in Vim (or Neovim) in tmux inside of iTerm on my Mac.

I found my color schemes were being properly applied in Neovim but not in Vim (version 8).

Adding the following values to my .vimrc corrected the problem for me.

let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

Related Resources

  • https://github.com/vim/vim/issues/993#issuecomment-255651605
  • https://vi.stackexchange.com/questions/10985/vim-under-tmux-looses-color-scheme-in-iterm2
Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Computing, Dev Tips, Draft, Solution Tagged With: tmux, vim

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in