加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

使用vundle在VIM中安装ctrlp

发布时间:2020-12-16 01:22:38 所属栏目:安全 来源:网络整理
导读:我正在使用 vundle作为vim的插件管理器. 但是我在安装ctrlp plugin时遇到麻烦. 当我执行:BundleInstall ctrlp,它输出以下日志与致命的错误: [131003 09:39:27] Bundle kien/ctrlp [131003 09:39:27] $git clone –recursive ‘07002’ ‘/home/username/.v
我正在使用 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是必需的.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读