我的~/.vimrc上有这个。
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'crooloose/nerdtree.git'
Plugin 'tomasr/molokai'
Plugin 'kien/ctrlp'
Plugin 'bling/vim-airline'
syntax enable
colorscheme molokai很漂亮,很直接。我有几个插件,我想安装使用Vundle,但每当我做:PluginInstall,它提示我的github用户名和密码。我知道我的用户名和密码是正确的,但它始终无法验证。我在github有双向认证。我觉得这不重要。但是,我得到以下错误。
[2014-09-19 23:18:14]
[2014-09-19 23:18:14] Plugin crooloose/nerdtree.git
[2014-09-19 23:18:14] $ git clone --recursive 'https://github.com/crooloose/nerdtree.git' '/home/shriek/.vim/bundle/nerdtree'
[2014-09-19 23:18:14] > Cloning into '/home/shriek/.vim/bundle/nerdtree'...
[2014-09-19 23:18:14] > remote: Invalid username or password.
[2014-09-19 23:18:14] > fatal: Authentication failed for 'https://github.com/crooloose/nerdtree.git/'
[2014-09-19 23:18:14] >
[2014-09-19 23:19:51]
[2014-09-19 23:19:51] Plugin kien/ctrlp
[2014-09-19 23:19:51] $ git clone --recursive 'https://github.com/kien/ctrlp.git' '/home/shriek/.vim/bundle/ctrlp'
[2014-09-19 23:19:51] > Cloning into '/home/shriek/.vim/bundle/ctrlp'...
[2014-09-19 23:19:51] > remote: Invalid username or password.
[2014-09-19 23:19:51] > fatal: Authentication failed for 'https://github.com/kien/ctrlp.git/'
[2014-09-19 23:19:51] >
[2014-09-19 23:19:52]
[2014-09-19 23:19:52] Helptags:
[2014-09-19 23:19:52] :helptags /home/shriek/.vim/bundle/Vundle.vim/doc
[2014-09-19 23:19:52] :helptags /home/shriek/.vim/bundle/vim-airline/doc
[2014-09-19 23:19:52] Helptags: 2 plugins processed我甚至尝试通过ssh -T git@github.com连接到github,上面写着Hi shriek! You've successfully authenticated, but GitHub does not provide shell access.
所以,我有点不知道发生了什么。帮助?
发布于 2014-09-20 07:45:11
也许这是插件中声明的url中的一个简单错误(您正试图克隆)。
https://github.com/crooloose/nerdtree.git不存在。
https://github.com/scrooloose/nerdtree.git有。
同样:
https://github.com/kien/ctrlp不存在。
https://github.com/kien/ctrlp.vim做的
通过在您的~/.vimrc中声明正确的用户名和回购名称,您在克隆上述插件时应该避免这些错误。
https://stackoverflow.com/questions/25945237
复制相似问题