2014-09-20 23 views
6

Tôi có điều này trên ~/.vimrc của tôi.Vundle không xác thực 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 

Khá, thẳng về phía trước thực sự. Tôi có vài plugin mà tôi muốn cài đặt bằng cách sử dụng Vundle nhưng bất cứ khi nào tôi làm :PluginInstall nó sẽ nhắc tôi về tên người dùng và mật khẩu github. Tôi biết rằng tên người dùng và mật khẩu của tôi là chính xác nhưng vẫn không xác thực được. Tôi có hai cách xác thực trên trong github btw. Tôi không nghĩ rằng vấn đề. Tuy nhiên, tôi nhận được lỗi sau.

[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 

Tôi thậm chí đã cố gắng kết nối với github bằng cách làm ssh -T [email protected] mà nói Hi shriek! You've successfully authenticated, but GitHub does not provide shell access.

Vì vậy, tôi kinda mất vào những gì đang xảy ra. Cứu giúp?

Trả lời

10

Có lẽ đây là một lỗi đơn giản trong url khai báo trong plugin của bạn (mà bạn đang cố gắng để sao chép)

https://github.com/crooloose/nerdtree.git không tồn tại.
https://github.com/scrooloose/nerdtree.git.

Tương tự:

https://github.com/kien/ctrlp không tồn tại.
https://github.com/kien/ctrlp.vim không

Bằng cách khai báo tên người dùng và tên repo trong ~/.vimrc, bạn nên tránh những lỗi đó khi nhân bản các plugin được cho biết.

+0

Wow. Bạn hoàn toàn đúng. Những lỗi chính tả này gần như quá xấu hổ. – shriek

Các vấn đề liên quan