Vim AirlineとTmux Tmuxlineのターミナルカラー

Vim AirlineとTmux Tmuxlineのターミナルカラー

Vundle と Airline で Vim を単独で使用すると、テーマが正常に表示されます。

ここに画像の説明を入力してください。

Tmuxlineにロードすると、テーマは異なる色を使用し、さらにVimも異なるように見えます。

ここに画像の説明を入力してください。

ここに画像の説明を入力してください。

これは私のTmux設定です。

set -g default-terminal "screen-256color"

source-file /home/tk/.tmux/tmuxline

unbind C-b

set -g prefix C-o

bind | split-window -h
bind - split-window -v

set-window-option -g mode-keys vi

bind-key -t vi-copy 'v' begin-selection
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'

bind C-y run "tmux save-buffer - | xclip -selection clipboard"

私のVim設定は次のとおりです。

set nocompatible " be iMproved, required
filetype off     " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin("~/some/other/path")

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'bling/vim-airline'

Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

Bundle 'edkolev/tmuxline.vim'

" include plugins here

call vundle#end()
filetype plugin indent on

set backspace=indent,eol,start

set showcmd
set incsearch
set number
set expandtab
set tabstop=4
set shiftwidth=4
set hlsearch
set ic
set autoindent
set cmdheight=1
set laststatus=2

syntax enable

set nobackup
set noswapfile
set showmatch

" airline
let g:airline_powerline_fonts = 1
let g:airline_theme = 'kolor'

set t_Co=256

どうやら私の色がどこかめちゃくちゃになったようだ。どうすれば解決できますか?

ベストアンサー1

これを使用してtmux -2この問題を解決できます。

おすすめ記事