Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify PATH internally from with gvim?

I have quite a few tools expected to be used togather with gvim on Windows. Usually the env variable PATH should be set for each tool respectively. Is it possible to make the modified PATH variable privately visible to gvim itself rather than system-widely visible to all programs?

BR,Ruochen

like image 914
Pan Ruochen Avatar asked Jul 05 '26 04:07

Pan Ruochen


1 Answers

You can modify the PATH directly inside Vim (or your ~/.vimrc); it will then used for any external command started from it (i.e. :! and :call system()).

:let $PATH .= ':/tmp'
like image 128
Ingo Karkat Avatar answered Jul 07 '26 09:07

Ingo Karkat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!