当单独使用 Vim 与 Vundle 和 Airline 时,主题会正常显示:
当我在 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
来解决这个问题。