I'm writing a Vim plugin. I need to call a binary which should be in the PATH. But I want to display an error message if its not. Whats the best way to find out if the binary is in the PATH?
I'm hoping to find a solution that is portable across different operating systems. But that doesn't seem very easy and I'll settle for a solution that works on unix/linux/mac.
Check this: :help executable()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With