微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用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是必需的.

原文地址:https://www.jb51.cc/vim/383905.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐