无法捆绑使用Vundle安装vim

无法捆绑使用Vundle安装vim

本文介绍了无法捆绑使用Vundle安装vim-css-color插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在<$ c下添加了 Bundle'ap / vim-css-color'到我的 .vimrc 中$ c>在github 上的原始存储库,并运行:BundleInstall ,但我看不到它中显示的新安装软件包的列表。实际上,即使我在中注释掉 Bundle 行并执行:BundleClean 插件仍在列表中。

I added Bundle 'ap/vim-css-color' to my .vimrc under the " original repos on github section and ran :BundleInstall but I do not see it the list of newly installed bundles that shows up in the new buffer. In fact even if I comment out a Bundle line in my .vimrc and do :BundleClean the plugin remains in that list.

我如何让Vundle正常工作?

How can I get Vundle to work?

我的 .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


推荐答案

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

As mentioned by romainl, you have clashing names. Vundle doesn't really differentiate between Github usernames when saved, just the name of the repositories. In other words, it doesn't notice if you switch from skammer/vim-css-color to ap/vim-css-color. Take a look at how it stores the bundles:

$ 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. 重新添加/取消注释捆绑'ap / vim-css-color'

  5. 重新启动Vim

  6. :BundleInstall -现在安装 Bundle'ap / vim-css-color'

  1. Remove/comment out both */vim-css-color entries
  2. Restart Vim - let Vundle refresh the list of bundles
  3. :BundleClean - notice how it'll ask if you want to remove Bundle 'vim-css-color', and not specifying the Github username.
  4. Re-add/uncomment Bundle 'ap/vim-css-color'
  5. Restart Vim
  6. :BundleInstall - now installs Bundle 'ap/vim-css-color'

这篇关于无法捆绑使用Vundle安装vim-css-color插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 07:59