我使用vundle作为vim的插件管理器。
然而,我在安装ctrlp插件时遇到了困难。
当我执行:BundleInstall ctrlp时,它输出以下日志时会出现致命错误:
131003 09:39:27 Bundle kien/ctrlp 131003 09:39:27 $ git克隆--递归的'https://github.com/kien/ctrlp.git‘/home/username/..vim/bundle/ctrlp’131003 09:39:27 >克隆到‘/home/username/..vim/bundle/ctrlp’. https://github.com/kien/ctrlp.git/info/ ^@https://github.com/kien/ctrlp.git/info/ref?https://github.com/kien/ctrlp.git/info/?https://github.com/kien/ctrlp.git/info/= git -upload:您在服务器上运行git更新-服务器信息了吗? 131003 09:39:28帮助标签: 131003 09:39:28 :帮助标签/home/username/..vim/bundle/vundle/doc/ 131003 09:39:28 :帮助标签/home/username/.vim/bundle/vim-逃犯/doc/ 131003 09:39:28 :帮助标签/home/username/.vim/bundle/vim-colors-solarized/doc/ 131003 09:39:28 :帮助标签/home/username/..vim/bundle/nerdtree/doc/ 131003 09:39:28帮助标签:处理4包 131003 09:49:39捆绑 131003 09:49:39 $ git克隆--递归的'https://github.com/vim-scripts/ctrlp.git‘/home/username/..vim/bundle/ctrlp’ 131003 09:49:39 >克隆到‘/home/username/..vim/bundle/ctrlp’.^@致命:https://github.com/vim-scripts/ctrlp.gi t/info/refs?service= git -upload:您在服务器上运行git更新-server-info吗?^@ 131003 09:49:40 Helptag: 131003 09:49:40 :帮助标签/home/username/..vim/bundle/vundle/doc/ 131003 09:49:40 :帮助标签/home/username/.vim/bundle/vim-逃犯/doc/ 131003 09:49:40 :帮助标签/home/username/.vim/bundle/vim-colors-solarized/doc/ 131003 09:49:40 :帮助标签/home/username/..vim/bundle/nerdtree/doc/ 131003 09:49:40帮助标签:4包处理 131003 09:50:12捆绑 131003 09:50:12 $ git克隆--递归的'https://github.com/vim-scripts/ctrlp.git‘/home/username/..vim/bundle/ctrlp’ 131003 09:50:12克隆到‘/home/username/..vim/bundle/ctrlp’.^@致命:https://github.com/vim-scripts/ctrlp.gi 未找到t/info/ref?service= git -upload pack:您在服务器上运行git update-server-info吗?^@ 131003 09:50:13帮助标签: 131003 09:50:13 :帮助标签/home/username/..vim/bundle/vundle/doc/ 131003 09:50:13 :帮助标签/home/username/.vim/bundle/vim-逃犯/doc/ 131003 09:50:13 :帮助标签/home/username/.vim/bundle/vim-colors-solarized/doc/ 131003 09:50:13 :帮助标签/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发布于 2016-05-08 21:24:19
很抱歉说这句话,但是上面提到的都不适合我。下面是我如何在vundle的帮助下做到这一点
1) install vundle“阅读更多信息,它只是vim的包管理器”。
2) start vim .
3)类型:PluginSearch ctrlP
按回车后,one plugin found
你会看到这个。
Keymap: i - Install plugin; c - Cleanup; s - Search; R - Reload list
"Search results for: ctrlP + Plugin 'ctrlp.vim' 当然,继续安装i。
确保它已成功安装在vim键中。
:help ctrlP你应该看看这个:
*ctrlp.txt* Fuzzy file, buffer, mru, tag, ... finder. v1.79
*CtrlP* *ControlP* *'ctrlp'* *'ctrl-p'*
===============================================================================
# #
# :::::::: ::::::::::: ::::::::: ::: ::::::::: #
# :+: :+: :+: :+: :+: :+: :+: :+: #
# +:+ +:+ +:+ +:+ +:+ +:+ +:+ #
# +#+ +#+ +#++:++#: +#+ +#++:++#+ #
# +#+ +#+ +#+ +#+ +#+ +#+ #
# #+# #+# #+# #+# #+# #+# #+# #
# ######## ### ### ### ########## ### #
# #
===============================================================================
CONTENTS *ctrlp-contents*编辑:
您还需要将其添加到vimrc中。
za:~ za$ vim ~/.vimrc
#add this to your vimrc file
Plugin 'ctrlp.vim'启动vim,并从命令类型:
:PluginList您将列出已安装的插件。
" My Plugins |
Plugin 'VundleVim/Vundle.vim' |~
Plugin 'tpope/vim-fugitive' |~
Plugin 'git://git.wincent.com/command-t.|~
git' |~
Plugin 'rstacruz/sparkup' |~
Plugin 'ascenator/L9' |~
Plugin 'ctrlp.vim' |~
|~
~ 好好享受!!
https://stackoverflow.com/questions/19153934
复制相似问题