我试图通过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我的.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>发布于 2020-03-10 05:47:38
您需要将.vimrc的第11行更改为
Bundle 'rstacruz/sparkup', {'rtp': 'vim'} 正如https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows#trailing-slash-issue中解释的那样,vimrc中的尾随斜杠会导致无效的runtimepath,从而导致所有插件加载失败
https://stackoverflow.com/questions/52665947
复制相似问题