lifepillar / vim-solarized8

Optimized Solarized colorschemes. Best served with true-color terminals!
1.01k stars 88 forks source link

No syntax highlighting in iTerm2 -> ssh -> tmux (next-3.3) -> vim (8.2) #85

Open themightyoarfish opened 3 years ago

themightyoarfish commented 3 years ago

With the above configuration and these tmux settings:

set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"

There is no syntax highlighting with this vimrc:

   syntax enable
   set termguicolors
   # add lines here
   call dein#add('lifepillar/vim-solarized8')
   colo solarized8
   set bg=light

I have verified with this awk script that I get a smooth gradient outside of vim.

I had to add the lines

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

to the position marked above. Then it works.

themightyoarfish commented 3 years ago

Turns out this is stated in the readme … https://github.com/lifepillar/vim-solarized8#troubleshooting Sorry for the spam.

themightyoarfish commented 3 years ago

Hate to revisit this, but after some time, the same remote machine with the above settings and versions again exhibits this problem:

image

What troubleshooting can I do here?

lifepillar commented 3 years ago

Not sure. What if you uncomment the following lines in your tmux conf?

set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"

Shouldn't the terminal be the same in those two lines?

Also, is termguicolors set? Do you get correct (approximate, of course) colors if you :set notermguicolors?

These are some ideas off the top of my head. This is not an issue with the color scheme, but with the environment. You may get better help from Vim users's list.