Using Vundle behind Proxy
Asked Answered
S

1

8

We have have this neat little script at work that let's us use the internet over proxy from the linux enviroment. For example

withproxy git clone https://github.com/VundleVim/Vundle.vim.git

works just fine and doesn't even prompt me for my username and password.

How do I set this up within the .vimrc for Vundle so that all the git things are prefixed by this proxy script?

Slushy answered 15/7, 2015 at 8:5 Comment(1)
Have you tried just running vim with the proxy script?Wilterdink
P
12

How do I set this up within the .vimrc for Vundle so that all the git things are prefixed by this proxy script?

You don't. What you do instead is make git go through the proxy:

git config --global http.proxy http://username:[email protected]:8080

You can also set the environment variable http_proxy to the same thing:

export http_proxy='http://username:[email protected]:8080'

You might also need a https_proxy if you do it this way.

Piled answered 15/7, 2015 at 10:6 Comment(1)
For socks proxy, just add ALL_PROXY=socks5://127.0.0.1:1080 before the vim command. see, using-a-socks-proxy-with-git-for-the-http-transport. For example, I use vim-plug with :PlugInstall to install wakatime/vim-wakatime. I tried ALL_PROXY=socks5://127.0.0.1:8888 vim, then run :PlugInstall in vim and vim-plug will use the socks proxy. It works for me.Staccato

© 2022 - 2024 — McMap. All rights reserved.