gpt4 book ai didi

vim - 使用 vundle 在 VIM 中安装 ctrlp

转载 作者:行者123 更新时间:2023-12-02 00:33:41 25 4
gpt4 key购买 nike

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

但是我在安装 ctrlp plugin 时遇到问题.

当我执行 :BundleInstall ctrlp 时,它输出以下日志,并出现 fatal error :

[131003 09:39:27] Bundle kien/ctrlp
[131003 09:39:27] $ git clone --recursive 'https://github.com/kien/ctrlp.git' '/home/username/.vim/bundle/ctrlp' [131003 09:39:27] > Cloning into '/home/username/.vim/bundle/ctrlp'...^@fatal: https://github.com/kien/ctrlp.git/info/ 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 'https://github.com/vim-scripts/ctrlp.git' '/home/username/.vim/bundle/ctrlp'
[131003 09:49:39] > Cloning into '/home/username/.vim/bundle/ctrlp'...^@fatal: https://github.com/vim-scripts/ctrlp.gi 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 'https://github.com/vim-scripts/ctrlp.git' '/home/username/.vim/bundle/ctrlp'
[131003 09:50:12] > Cloning into '/home/username/.vim/bundle/ctrlp'...^@fatal: https://github.com/vim-scripts/ctrlp.gi
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 存储库已过时,您真正想要的是 this currently maintained fork .

.vimrc 中的正确行现在是:

插件 'ctrlpvim/ctrlp.vim'

旧答案:

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

插件'kien/ctrlp.vim'

请注意,.vim 是必需的。

关于vim - 使用 vundle 在 VIM 中安装 ctrlp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19153934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com