我试图通过Vundle安装gruvbox颜色方案,但当我运行vim时发生了以下错误:
Error detected while processing C:\Users\user\.vimrc:
line 53:
E185: Cannot find color scheme 'gruvbox'
我在 Stack Overflow 上搜索了很多,尝试了所有方法,但都没有起作用。你能帮我解决一下吗?
以下是我运行的命令:
vim
:PluginInstall
:q
vim <-- This is where I got the error
my .vimrc:
set nocompatible
filetype off
set rtp+=$HOME/.vim/bundle/Vundle.vim/
call vundle#begin('$HOME/.vim/bundle/')
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'file:///home/gmarik/path/to/plugin'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'morhetz/gruvbox'
call vundle#end()
filetype plugin indent on
syntax enable
set background=dark
colorscheme gruvbox
set tabstop=4
set softtabstop=4
set expandtab
set number
set showcmd
set cursorline
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set incsearch
set hlsearch
nnoremap <leader><space> :nohlsearch<CR>
:PluginList
命令查看是否已加载。 - sidyll