使用vundle在VIM中安装ctrlp

我正在使用 vundle作为vim的插件管理器.

但是我在安装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
2015年9月更新:

kien / ctrlp.vim repo已经过时了,你真正想要的是this currently maintained fork.

现在您的.vimrc中的正确行:

插件’ctrlpvim / ctrlp.vim’

旧答案:

要使用Vundle安装CtrlP,您的.vimrc中的正确行现在是:

插件’kien / ctrlp.vim’

请注意,.vim是必需的.

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...