junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
33.92k stars 1.93k forks source link

Use vim-plug with portable git #1158

Closed ForteDexe closed 5 months ago

ForteDexe commented 2 years ago

I dont have permission to modify $PATH env on windows, how can I make vim-plug using git portable

Latest vim-plug

Meuhor commented 1 year ago

I have tried change all git associated command in plug.vim to a local variable git_exec pointing to the absolute path of portable git.exe, which makes it work for portable git. Looking forward to official support for this. By the way, a configurable git mirror is also welcomed.

junegunn commented 5 months ago

You can change your $PATH in your Vim configuration file.

let $PATH = '/path/to/git/portable:'.$PATH

And vim-plug will use it.