2

I recently installed and have been using MacVim on OS X 10.11.5, and I wanted to install some plugins. I installed Vundle successfully, however I'm encountering errors when I try to install plugins using Vundle. The plugin I'm trying to install is YouCompleteMe. What I did is type :PluginInstall YouCompleteMe, however, when I execute this, I get the following error:

"fatal: could not read Username for 'https://github.com': Device not configured"

This is strange; I have a GitHub account, but I'm not being promoted for it. I'm very new to git, so any help would be much appreciated!

Here is a screenshot of the error log.

Update:

I ran the clone from the command prompt, and it worked, but I would like to be able to manage it from inside MacVim. Additionally, the URL MacVim was using was wrong. I had to go to the page itself and get a different URL. I would like to automate this inside MacVim if possible. Even using SSH instead of HTTPS doesn't fix the incorrect URL issue.

2
  • Using the ssh url instead of the https url will probably fix it. Commented Aug 14, 2016 at 0:31
  • @Carpetsmoker How would I configure MacVim to do that? Commented Aug 14, 2016 at 0:41

1 Answer 1

2

To use ssh instead of https:

git config --global url."[email protected]:".insteadOf https://github.com/

Then try again the plugin installation: any https://github.com access should now use an ssh url.

Similarly:

git config --global url."https://github.com/vim-scripts/YouCompleteMe.git".insteadOf "https://github.com/Valloric/YouCompleteMe.git"  

That will "automate this inside MacVim".

If you have a local repo with the wrong url:

cd /path/to/local/repo
git remote set-url origin https://github.com/Valloric/YouCompleteMe.git
Sign up to request clarification or add additional context in comments.

2 Comments

I tried this, however MacVim seems to have the incorrect URL. The repository at the URL MacVim has is non-existent, and I don't know how to change it to the proper one. The one MacVim has: github.com/vim-scripts/YouCompleteMe.git The right one: github.com/Valloric/YouCompleteMe.git
mvim is an editor, not a repo. If you have a local repo, git remote set-url origin xxx is the way to change its remote url.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.