Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme The color doesn't look right #261

Open
Dnnecessary opened this issue Sep 10, 2021 · 3 comments
Open

theme The color doesn't look right #261

Dnnecessary opened this issue Sep 10, 2021 · 3 comments

Comments

@Dnnecessary
Copy link

environment

  • vim: 8.2.3400
  • vim-airline: 0.11
  • colorscheme: deus
  • OS: macOS Big Sur 11.5.2 iTerm2
  • Have you reproduced with a minimal vimrc: yes
  • What is your airline configuration:
" vim-airline
let g:airline_powerline_fonts = 1
" theme
let g:airline_theme='deus'
let g:bufferline_echo = 0
let g:airline_mode_map = {
      \ '__' : '-',
      \ 'n'  : 'N',
      \ 'i'  : 'I',
      \ 'R'  : 'R',
      \ 'c'  : 'C',
      \ 'v'  : 'V',
      \ 'V'  : 'V',
      \ 's'  : 'S',
      \ 'S'  : 'S',
      \ }

" 关闭检测空格
let g:airline#extensions#whitespace#enabled = 0
let g:airline_exclude_preview = 1
let g:airline#extensions#hunks#non_zero_only = 1
let g:airline#extensions#ale#enabled = 0
let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr'])


" 始终显示状态栏
set laststatus=2



" 启用256色
set term=xterm-256color

if you are using terminal:

  • terminal: iTerm2
  • $TERM variable: xterm-256color
  • color configuration (:set t_Co?): 256
    if you are using Neovim: no
  • does it happen in Vim: yes

actual behavior

The color doesn't look right

expected behavior

I hope so

CleanShot 2021-09-10 at 19 45 24@2x

screen shot (if possible)

CleanShot 2021-09-10 at 19 39 31@2x


CleanShot 2021-09-10 at 19 39 53@2x


CleanShot 2021-09-10 at 19 40 14@2x

@taigrr
Copy link
Contributor

taigrr commented Sep 25, 2021

Disable your terminal theme in iTerm, it's overriding colors.

@HasBeenCovered
Copy link

set termguicolors

Try to add this after

set t_Co=256

It told Vim to use 256 colors and enable true color support.At least it works in Windows Terminal

@chrisbra
Copy link
Member

chrisbra commented Nov 5, 2024

you either use:

:set termguicolors

(for true color mode)
or use:

set t_Co=256

to use 256colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants