2

I'd like my $PATH to be available to vim when running commands with !. How do I set vim's set path= to my environment variable $PATH?

1
  • 1
    Why do you think your $PATH is not available when using :!?
    – muru
    Commented Aug 4, 2017 at 8:51

1 Answer 1

7

&path has nothing to do with $PATH.

Also $PATH is set and used. See :echo $PATH.

You should also be able to change its value with :let $PATH = $PATH.':some/path' -- there are a few write only things, $PATH is not one of them IIRC

Your Answer

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

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