但是我在安装ctrlp plugin时遇到麻烦.
当我执行:BundleInstall ctrlp,它输出以下日志与致命的错误:
[131003 09:39:27] Bundle kien/ctrlp
[131003 09:39:27] $git clone –recursive
‘07002’ ‘/home/username/.vim/bundle/ctrlp’
[131003 09:39:27] > Cloning into
‘/home/username/.vim/bundle/ctrlp’…^@fatal:
07003 refs?service=git-upload-pack
not found: did you run git update-server-info on the server?^@
[131003 09:39:28] Helptags:
[131003 09:39:28] :helptags /home/username/.vim/bundle/vundle/doc/
[131003 09:39:28] :helptags
/home/username/.vim/bundle/vim-fugitive/doc/
[131003 09:39:28] :helptags
/home/username/.vim/bundle/vim-colors-solarized/doc/
[131003 09:39:28] :helptags /home/username/.vim/bundle/nerdtree/doc/
[131003 09:39:28] Helptags: 4 bundles processed
[131003 09:49:39] Bundle ctrlp
[131003 09:49:39] $git clone –recursive
‘07004’
‘/home/username/.vim/bundle/ctrlp’
[131003 09:49:39] > Cloning into
‘/home/username/.vim/bundle/ctrlp’…^@fatal:
07005
t/info/refs?service=git-upload-pack not found: did you run git
update-server-info on the server?^@ [131003 09:49:40] Helptags:
[131003 09:49:40] :helptags /home/username/.vim/bundle/vundle/doc/
[131003 09:49:40] :helptags
/home/username/.vim/bundle/vim-fugitive/doc/
[131003 09:49:40] :helptags
/home/username/.vim/bundle/vim-colors-solarized/doc/
[131003 09:49:40] :helptags /home/username/.vim/bundle/nerdtree/doc/
[131003 09:49:40] Helptags: 4 bundles processed
[131003 09:50:12] Bundle ctrlp
[131003 09:50:12] $git clone –recursive
‘07004’
‘/home/username/.vim/bundle/ctrlp’
[131003 09:50:12] > Cloning into
‘/home/username/.vim/bundle/ctrlp’…^@fatal:
07005
t/info/refs?service=git-upload-pack not found: did you run git
update-server-info on the server?^@
[131003 09:50:13] Helptags:
[131003 09:50:13] :helptags /home/username/.vim/bundle/vundle/doc/
[131003 09:50:13] :helptags
/home/username/.vim/bundle/vim-fugitive/doc/
[131003 09:50:13] :helptags
/home/username/.vim/bundle/vim-colors-solarized/doc/
[131003 09:50:13] :helptags /home/username/.vim/bundle/nerdtree/doc/
[131003 09:50:13] Helptags: 4 bundles processed
这是我的.vimrc:
filetype plugin indent on Syntax enable set background=light set smartindent set tabstop=4 set shiftwidth=4 set expandtab set nocompatible " be iMproved 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 'altercation/vim-colors-solarized' Bundle 'scrooloose/nerdtree' Bundle 'vbundles/ctrlp' colorscheme solarized
kien / ctrlp.vim repo已经过时了,你真正想要的是this currently maintained fork.
现在您的.vimrc中的正确行:
插件’ctrlpvim / ctrlp.vim’
旧答案:
要使用Vundle安装CtrlP,您的.vimrc中的正确行现在是:
插件’kien / ctrlp.vim’
请注意,.vim是必需的.