无法捆绑使用Vundle安装vim-css-color插件

时间:2013-05-10 15:46:18

标签: vim install bundle

我已将Bundle 'ap/vim-css-color'添加到.vimrc部分下的" original repos on github并运行:BundleInstall,但我看不到它显示在新版本中的新安装的列表中缓冲。实际上,即使我在Bundle中注释掉.vimrc行并执行:BundleClean,该插件仍会保留在该列表中。

如何让Vundle工作?

我的.vimrc

set nocompatible

filetype off  " required!

set rtp+=~/.vim/bundle/vundle
call vundle#rc()

" let Vundle manage Vundle
" required! 
Bundle 'gmarik/vundle'

" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
" Bundle 'tpope/vim-haml'
Bundle 'ap/vim-css-color'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'vim-scraper/packages'
Bundle "pangloss/vim-javascript"
" vim-scripts repos
Bundle 'surround.vim'
Bundle 'delimitMate.vim'
Bundle 'hail2u/vim-css3-syntax'
" Bundle 'skammer/vim-css-color'
" Bundle 'AutoComplPop'
" Bundle 'ervandew/supertab'
Bundle 'snipMate'
Bundle 'tComment'
" Bundle 'mru.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'matchit.zip'
Bundle 'Vimball'
Bundle 'ScrollColors'
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'     

运行:BundleInstall

后的结果
" Installing bundles to /home/max/.vim/bundle
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-haml'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup'
Bundle 'pangloss/vim-javascript'
Bundle 'surround.vim'
Bundle 'delimitMate.vim'
Bundle 'hail2u/vim-css3-syntax'
Bundle 'skammer/vim-css-color'
Bundle 'snipMate'
Bundle 'tComment'
Bundle 'mru.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'matchit.zip'
Bundle 'Vimball'
Bundle 'ScrollColors'
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'git://git.wincent.com/command-t.git'
Helptags

1 个答案:

答案 0 :(得分:2)

正如romainl所提到的,你有冲突的名字。 Vundle在保存时并没有真正区分Github用户名,只是存储库的名称。换句话说,如果您从skammer/vim-css-color切换到ap/vim-css-color,则不会注意到。看看它如何存储捆绑包:

$ ls -l .vim/bundle/
total 88K
[..]
drwxr-xr-x  5 tim tim 4.0K 12.04.13 00:31 vim-autoclose
drwxr-xr-x  4 tim tim 4.0K 11.05.13 03:27 vim-css-color
drwxr-xr-x  6 tim tim 4.0K 12.04.13 00:30 vim-easymotion
[..]

因此;清理你的烂摊子:

  1. 删除/注释两个 */vim-css-color条目
  2. 重新启动Vim - 让Vundle刷新捆绑包列表
  3. :BundleClean - 请注意它是否要求删除Bundle 'vim-css-color',而不是指定Github用户名。
  4. 重新添加/取消注释Bundle 'ap/vim-css-color'
  5. 重启Vim
  6. :BundleInstall - 现在安装Bundle 'ap/vim-css-color'