我使用vundle作为我的 vim 插件管理器。
但是我在安装ctrlp 插件时遇到了麻烦。
当我执行:BundleInstall ctrlp
时,它会输出以下带有致命错误的日志:
[131003 09:39:27] 捆绑 kien/ctrlp
[131003 09:39:27] $ git clone --recursive ' https://github.com/kien/ctrlp.git ' '/home/username/.vim/ bundle/ctrlp' [131003 09: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] 帮助标签:
[131003 09:49:40] :helptags /home/username/.vim/bundle/vundle/doc/
[131003 09:49:40] :helptags /home/username/.vim/bundle/vim-逃犯/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] 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] >克隆到 '/home/username/.vim/bundle/ctrlp'...^@fatal : https://github.com/vim-scripts/ctrlp.git/info/refs?service=git-upload-pack
未找到:你在服务器上运行过 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] 帮助标签:已处理 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