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
    Why do you think your $PATH is not available when using :!?
    – muru
    Aug 4 '17 at 8:51

&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, privacy policy and cookie policy

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