[英]Vim cannot find colorscheme installed by Vundle
我試圖通過 Vundle 安裝 gruvbox colourscheme,但是當我運行 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>
您需要將.vimrc
第 11 行更改為
Bundle 'rstacruz/sparkup', {'rtp': 'vim'}
如https://github.com/VundleVim/Vundle.vim/wiki/Vundle-for-Windows#trailing-slash-issue 中所述,vimrc 中的尾部斜杠導致無效的運行時runtimepath
,從而導致所有插件加載失敗
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.