rfc*_*484 11 vim vim-plugin ctrlp vundle
我正在使用vundle作为vim的插件管理器.
但是我在安装ctrlp插件时遇到问题.
当我执行时:BundleInstall ctrlp,它会输出以下日志并出现致命错误:
[131003 9时39分27秒]捆绑坚/ ctrlp
[131003 9时39分27秒] $ GIT中克隆--recursive ' https://github.com/kien/ctrlp.git '"/home/username/.vim/束/ ctrlp '[131003 9点39分27秒]>克隆到' /home/username/.vim/bundle/ctrlp'...^@fatal: https://github.com/kien/ctrlp.git/info / refs?service = git-upload-pack not found:你在服务器上运行了git update-server-info吗?^ @
[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]帮助标签:4捆绑处理
[131003 09:49:39]捆绑ctrlp
[131003 09:49:39] $ git clone --recursive'https://github.com/vim-scripts/ ctrlp.git ''/
home/username..vim/bundle/ctrlp ' [131003 09:49:39]>克隆到'/home/username/.vim/bundle/ctrlp'...^@fatal:https : //github.com/vim-scripts/ctrlp.gi t/info/refs?service = git-upload-pack not found:你在服务器上运行了git update-server-info吗?^ @ [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]帮助标签:4个捆绑处理
[131003 09:50:12]捆绑ctrlp
[131003 09 :50:12] $ git clone --recursive'https://github.com/vim-scripts/ctrlp.git''/home/username/.vim/bundle/ctrlp '
[131003 09:50:12]>克隆到"/home/username/.vim/bundle/ctrlp'...^@fatal: https://github.com/vim-scripts/ctrlp.gi
?T /信息/服务裁判的git =上传包找不到:你在服务器上运行了git update-server-info吗?^ @
[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个包
这是我的.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
Run Code Online (Sandbox Code Playgroud)
YPC*_*ble 36
2015年9月更新:
kien/ctrlp.vim repo已经过时了,你真正想要的是这个当前维护的fork.
.vimrc中的正确行现在是:
Plugin 'ctrlpvim/ctrlp.vim'
老答案:
要使用Vundle安装CtrlP,现在.vimrc中的正确行:
Plugin 'kien/ctrlp.vim'
请注意,这.vim是必要的.
你没有使用正确的来源,那vbundles/ctrlp是没用的.在真正的 CtrlP是:
https://github.com/kien/ctrlp.vim
Run Code Online (Sandbox Code Playgroud)
或者,您可以自己进行克隆.