Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In order to test, I try to install a local plugin as this step:

  1. Clone anything useful plugin to local, like vim-fugitive:

    git clone https://github.com/tpope/vim-fugitive.git ~/devspace/vim-fugitive
    
  2. Add Bundle '~/devspace/vim-fugitive.git in .vimrc file.

  3. Execute vim +BundleInstall in shell.

Everything is done except the following plugin, the log is:

Bundle ~/devspace/vim-fugitive.git
$ git clone --recursive '~/devspace/vim-fugitive.git' '/home/USER/.vim/bundle/vim-fugitive'                                                               
> fatal: Could not switch to '~/devspace': No such file or directory^@

If I did not understand right, please tell me, thanks.

--UPDATE--

I just change .vimrc to Bundle '/home/leiming/devspace/vim-fugitive',the error log as below:

Bundle /home/leiming/devspace/vim-fugitive
$ git clone --recursive 'https://github.com/vim-scripts//home/leiming/devspace/vim-fugitive.git' '/home/leiming/.vim/bundle/home/leiming/devspace/vim-fugitive'                                                                                                                                                                   
> Cloning into /home/leiming/.vim/bundle/home/leiming/devspace/vim-fugitive...^@error: The requested URL returned error: 403 while accessing https://github.com/vim-scripts//home/leiming/devspace/vim-fugitive.git/info/refs^@^@fatal: HTTP request failed^@     
share|improve this question

migrated from stackoverflow.com Dec 30 '13 at 7:29

This question came from our site for professional and enthusiast programmers.

    
I have not used vundle, but here are some guesses. (1) if you cloned to vim-fugitive instead of vim-fugitive.git, then use that in your :Bundle command. (2) Try using $HOME instead of ~. (3) Check the permissions on ~/devspace: according to the error message, it does not exist. –  benjifisher Dec 30 '13 at 3:56
    
Thanks for replying, but it cannot work. –  LeiMing Dec 30 '13 at 4:07

1 Answer 1

up vote 1 down vote accepted

Because you cloned ~/devspace/vim-fugitive but this is not a repository. So change like this: Bundle 'tpope/vim-fugitive' and if you want to work on your local repo follow this: " Git repos on your local machine (i.e. when working on your own plugin) Bundle 'file:///Users/gmarik/path/to/plugin'

You can see the vundle configuration here: Vundle on Github

share|improve this answer
    
Thanks for replying, I change the .vimrc as your advice, but the error has not be sovled as problem details. –  LeiMing Dec 30 '13 at 5:10
    
but in Bundle you have to put the repository address like this: Bundle 'tpope/vim-fugitive' –  Domenico Leone Luciani Dec 30 '13 at 5:15
    
@Luciani, thx, but I think you don't understand my intent. The point is not vim-fugitive but installing local plugin by Vundle. –  LeiMing Dec 30 '13 at 5:19
    
@LeiMing I've edited my answer right now. Following the README you have to put file:// before on your PATH –  Domenico Leone Luciani Dec 30 '13 at 5:22
    
@Luciani, I tried... –  LeiMing Dec 30 '13 at 5:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.