问题描述
我在<$ 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
[..]
因此;清理混乱:
- 删除/注释两者
* / vim-css -color
条目 - 重新启动Vim-让Vundle刷新捆绑包列表
-
:BundleClean
-注意它将如何询问您是否要删除Bundle'vim-css-color'
,而不指定Github用户名。 - 重新添加/取消注释
捆绑'ap / vim-css-color'
- 重新启动Vim
-
:BundleInstall
-现在安装Bundle'ap / vim-css-color'
- Remove/comment out both
*/vim-css-color
entries - Restart Vim - let Vundle refresh the list of bundles
:BundleClean
- notice how it'll ask if you want to removeBundle 'vim-css-color'
, and not specifying the Github username.- Re-add/uncomment
Bundle 'ap/vim-css-color'
- Restart Vim
:BundleInstall
- now installsBundle 'ap/vim-css-color'
这篇关于无法捆绑使用Vundle安装vim-css-color插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!