2014-09-20 33 views
6

我在我的~/.vimrc上有这个。Vundle未验证github

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 btw。我不认为这很重要。 但是,我收到以下错误。

[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 [email protected]它说 Hi shriek! You've successfully authenticated, but GitHub does not provide shell access.

所以,我有点失去了这是怎么回事连接到github上。帮帮我?

回答

10

这也许是在你的插件声明的网址一个简单的错误(你正在试图克隆)

https://github.com/crooloose/nerdtree.git不存在。
https://github.com/scrooloose/nerdtree.git确实。

同理:

https://github.com/kien/ctrlp不存在。
https://github.com/kien/ctrlp.vim确实

通过在您~/.vimrc声明正确的用户名和回购的名字,你应该克隆时,为了避免这些错误表示插件。

+0

哇。你是绝对正确的。这些错别字几乎太尴尬。 – shriek 2014-09-20 09:08:03