所以我试图在我的mac上的iterm2中获得colorscheme支持。当我:colorscheme曝光时,这就是我的屏幕看起来像
这是我的主要.vimrc
set nocompatible
let mapleader = ","
set backspace=2
set nobackup
set nowritebackup
set noswapfile
set history=50
set ruler
set showcmd
set incsearch
set laststatus=2
set autoread
set ignorecase
set smartcase
set tabstop=2
set shiftwidth=2
set shiftround
set list listchars=tab:»·,trail:·,nbsp:·
set textwidth=80
set colorcolumn=+1
"set number
set splitbelow
set splitright
set winwidth=84
set winheight=5
set winminheight=5
set winheight=999
set matchpairs+=<:>
" Treat <li> and <p> tags like the block tags they are
let g:html_indent_tags = 'li\|p'
set scrolloff=8
set sidescrolloff=15
set sidescroll=1
"if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
" syntax on
" set t_Co=256
" set background=dark
"endif
" Load up all of our plugins
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
filetype plugin indent on
这是我的插件文件
if &compatible
set nocompatible
end
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'christoomey/vim-tmux-runner.git'
Plugin 'christoomey/vim-run-interactive'
Plugin 'vim-scripts/ctags.vim'
Plugin 'scrooloose/syntastic' "Syntax Highlighting
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'ervandew/supertab'
Plugin 'vim-scripts/tComment'
Plugin 'vim-scripts/HTML-AutoCloseTag'
Plugin 'jiangmiao/auto-pairs'
Plugin 'tpope/vim-fugitive' "Make git awesome
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'Slava/vim-spacebars'
Plugin 'groenewege/vim-less'
Plugin 'altercation/vim-colors-solarized'
Plugin 'bling/vim-airline' "Awesome looking meta at bottom
Plugin 'majutsushi/tagbar'
Plugin 'vim-scripts/matchit.zip'
Plugin 'vimwiki/vimwiki'
Plugin 'mattn/calendar-vim'
call vundle#end()
filetype on
set t_Co=256
set background=dark
syntax enable
我已经进入了iterm的设置并将终端的报告设置为xterm-256color。我还在.zshrc中添加了以下行
export CLICOLOR=1
export TERM=xterm-256color