use*_*805 1 linux vim ubuntu colors
我在 Xubuntu 上安装了 vim,并使用了 Solarized 方案颜色。在我安装 Pathogen 之前它工作正常。现在,当我在终端中盯着 Vim 时,不断收到以下错误消息:
处理 /usr/share/vim/vimrc 时检测到错误:第 42 行:E185:找不到配色方案 'solarized.vim'
实际上,尽管出现此错误消息,配色方案仍在运行。
下面是树状结构和 .vimrc 文件。
/home/marc/.vim/
/home/marc/.vim/autoload/
/home/marc/.vim/autoload/pathogen.vim
/home/marc/.vim/bundle/
/home/marc/.vim/bundle/solarized/
/home/marc/.vim/bundle/solarized/colors/solarized.vim
/home/marc/.vim/bundle/vim-sensible/
/home/marc/.vim/bundle/vim-sensible/.git/
/home/marc/.vim/bundle/vim-sensible/plugin/sensible.vim
Run Code Online (Sandbox Code Playgroud)
感谢您的帮助。
.vimrc 文件
call pathogen#infect()
set nocompatible
syntax on
filetype plugin indent on
set title
set number
set ruler
set wrap
set scrolloff=3
set ignorecase
set smartcase
set incsearch
set hlsearch
set visualbell
set noerrorbells
set backspace=indent,eol,start
set hidden
let g:solarized_termcolors=256
"let g:solarized_visibility="high"
"let g:solarized_contrast ="high"
set t_Co=16
set background=dark
colorscheme solarized
highlight Normal ctermbg=NONE
highlight nonText ctermbg=NONE
set guifont=DejaVu\ Sans\ Mono\ 10
set antialias
Run Code Online (Sandbox Code Playgroud)
我也遇到了同样的问题,通过将下面的文件复制到颜色目录可以解决此问题。
cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/
Run Code Online (Sandbox Code Playgroud)