gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
22.01k stars 3.37k forks source link

How to fix vim colors on mac terminal #523

Closed GenaANTG closed 3 years ago

GenaANTG commented 3 years ago

Issue description

First of all i want respect you for this config. <3 And question is: How to fix background highlight in normal vim mode? Outside of tmux i have no those highlights.

Screenshot 2021-10-08 at 15 15 31

Required information

Please provide the following information:

gpakosz commented 3 years ago

Hello @GenaANTG 👋

Your $TERM settings look right.

Oh my tmux! does nothing more than set -g default-terminal screen-256color so it's likely something on your Vim configuration.

GenaANTG commented 3 years ago

@gpakosz Thanks mate! When VIM is running without tmux i have no those background highlights. Do you think that problem is with VIM only?

GenaANTG commented 3 years ago

Yeah, looks like problem is with VIM theme. I tried to change to another theme and all going well. Thanks!

GenaANTG commented 3 years ago

On mac you can fix it with next setting for tmux: set -g default-terminal "xterm-256color"

gpakosz commented 3 years ago

Except https://github.com/tmux/tmux/wiki/FAQ starts with

Inside tmux TERM must be "screen", "tmux" or similar (such as "tmux-256color"). Don't bother reporting problems where it isn't!

Outside, it should match your terminal: particularly, use "rxvt" for rxvt and derivatives.